summaryrefslogtreecommitdiff
path: root/testing/test_conftest.py
AgeCommit message (Collapse)Author
2018-05-13Spelling and grammar fixesVille Skyttä
2018-01-09Replace py.std with stdlib importsAnthony Sottile
2017-12-11simplify test_conftest_found_with_double_dash() test codeJurko Gospodnetić
2017-12-09shorten some test codeJurko Gospodnetić
2017-11-04Fix linting E741: ambiguous variable nameBruno Oliveira
2017-07-20Add "fix-lint" tox environment to fix linting errorsBruno Oliveira
2017-07-17Fixed E302 flake8 errorsAndras Tim
expected 2 blank lines, found 0
2017-07-17Fixed E271 flake8 errorsAndras Tim
multiple spaces after keyword
2017-07-17Fixed E265 flake8 errorsAndras Tim
block comment should start with ‘# ‘
2017-07-17Fixed E241 flake8 errorsAndras Tim
multiple spaces after ‘,’
2017-07-17Fixed E231 flake8 errorsAndras Tim
missing whitespace after ‘,’, ‘;’, or ‘:’
2017-07-17Fixed E225 flake8 errorsAndras Tim
missing whitespace around operator
2017-07-17Fixed E101 flake8 errorsAndras Tim
indentation contains mixed spaces and tabs
2017-06-01Fix --help with required optionsSegev Finer
This works by adding an argparse Action that will raise an exception in order to skip the rest of the argument parsing. This prevents argparse from quitting due to missing required arguments, similar to the way that the builtin argparse --help option is implemented by raising SystemExit. Fixes: #1999
2017-03-16Add __future__ imports to all pytest modulesBruno Oliveira
This prevents silly errors from creeping in Python 2 when testing in Python 3
2017-02-16New-style classes implemented for python 2.7 - #2147Michal Wajszczuk
2016-12-02Remove hook proxy cacheBruno Oliveira
Fix #2016
2016-11-20Fix flake8 E305 and E306 errorsBruno Oliveira
These errors started to appear with flake8-3.1.1, while they don't appear with version 3.1.0 (weird).
2016-07-20Merge branch 'features' into conftest-exception-printingBruno Oliveira
2016-07-14Added confcutdir in testing/test_conftest.py::test_conftest_import_order andRedBeardCode
testing/python/fixture.py::TestAutouseManagement::():: test_class_function_parametrization_finalization to avoid problems with abandoned conftest.py files in /tmp dir. Fixes #1536
2016-07-05Fixing link to issue and creating testcase that shows that it finds the line ↵Javier Domingo Cansino
in the stderr lines
2016-01-25Moved py.code code over to py.testBruno Oliveira
Fix #103
2015-09-28fix issue #1073 -- shortcut plugin hook lookup if the attrname is notholger krekel
prefixed with pytest_.
2015-08-18return non-zero exit code if no tests are collectedBruno Oliveira
Fix #812 Fix #500
2015-07-23Avoid detecting conftest files upwards from setup.cfg/pytest.ini/tox.ini ↵Bruno Oliveira
files by default As discussed in #82
2015-07-15Use a subdirectory in the TEMP directory to speed up tmpdir creationBruno Oliveira
Fix #105
2015-06-23Merge pull request #799 from pytest-dev/noconftestholger krekel (rather uses bitbucket/hpk42)
Add a --noconftest option.
2015-06-23Merge branch 'pytest-2.7'holger krekel
Conflicts: AUTHORS _pytest/__init__.py setup.py testing/conftest.py tox.ini
2015-06-23Check conftest.py is not loaded with --confcutdir.Florian Bruhin
The test creates a conftest.py with "assert 0" which never should be loaded. However, if it were loaded, the test would still pass as it never checks if it was loaded or not. See #799.
2015-06-23Add a --noconftest option.Florian Bruhin
2015-04-22merge conftest management into PytestPluginManagerholger krekel
--HG-- branch : plugin_no_pytest
2015-03-01Add commentsEric Siegerman
--HG-- branch : issue616
2015-02-27move conftest visibility tests and their setup into a class, accomodates ↵holger krekel
@nicoddemus 's comment --HG-- branch : issue616
2015-02-26fix issue616 - conftest visibility fixes. This is achieved byholger krekel
refactoring how nodeid's are constructed. They now are always relative to the "common rootdir" of a test run which is determined by finding a common ancestor of all testrun arguments. --HG-- branch : issue616
2014-08-01Simply show the node ID for verbose outputFloris Bruynooghe
This strips the line number, /@\d/, from the verbose output so it is directly the node ID of the test. This in turn means no special logic for accepting the line number as part of the node ID is needed when parsing the command line.
2014-07-28fix conftest detection if commandline arguments contain "::" syntaxholger krekel
--HG-- branch : fix_initial_parsing
2014-04-02cleanup internal conftest handling and avoid the strange None entry in the ↵holger krekel
conftest cache. (There is basically no reason to ask for conftestmodules without specifying a path.) --HG-- branch : conftest-clean
2014-04-02fix issue436: improved finding of initial conftest files from commandholger krekel
line arguments by using the result of parse_known_args rather than the previous flaky heuristics. Thanks Marc Abramowitz for tests and initial fixing approaches in this area.
2013-11-21remove an old duplicate marker and use recent pytest mechanism for ↵holger krekel
parametrization
2013-11-12use deepest fixturedef for fixture closureAnatoly Bubenkov
--HG-- branch : multi-level-fixture-deps-override
2013-10-12fix flakes issues and make --flakes run part of tox runsholger krekel
2013-07-06remove unnecessary printAnatoly Bubenkov
2013-04-18Load conftest files in the correct order initiallyFloris Bruynooghe
When the conftest.py files are looked for intially they got loaded starting from the subdir ending at the parent dir(s). Later on during collection any conftest.py files are loaded starting from the parent dir ending at the subdir. Due to how extending fixtures works the latter is correct as otherwise the wrong fixture will be available. So this changes the initial conftest loading to start at the root and go towards the subdir. This does also affect the order of other hooks, hence the order of the reporting being different in testing/test_terminal.py.
2012-10-05rename a number of internal and externally visible variables to use the ↵holger krekel
fixture name rather than funcargs. Introduce .funcargnames compatibility attribute for backward compat.
2012-06-26fix issue151 - heuristcally lookup conftest files on all command line ↵holger krekel
arguments, not just the first existing dir/file you can install the corresponding pytest-2.3.dev2 via pip install -i http:/pypi.testrun.org -U pytest
2011-09-21try to make test suite pass on jython 2.5.1 againholger krekel
2011-01-11remove same-conftest.py detection - does more harm than goodholger krekel
(see mail from Ralf Schmitt on py-dev)
2010-11-17streamline docs, especially use "import pytest" and "pytest.*" in python ↵holger krekel
code examples instead of "import py" and "py.test.*".
2010-11-13flat is better than nested (cont'd):holger krekel
- pytest.py is new module, making "python -m pytest" work always - _pytest/*.py now contains core.py, hookspec and the plugins, no sub packages
2010-11-13internally use pytest.* instead of ``py.test.*`` in many places.holger krekel
make sub namespace names 'collect' and 'cmdline' available on pytest directly