summaryrefslogtreecommitdiff
path: root/testing
AgeCommit message (Collapse)Author
2021-02-22build(deps): bump django in /testing/plugins_integrationdependabot[bot]
Bumps [django](https://github.com/django/django) from 3.1.6 to 3.1.7. - [Release notes](https://github.com/django/django/releases) - [Commits](https://github.com/django/django/compare/3.1.6...3.1.7) Signed-off-by: dependabot[bot] <support@github.com>
2021-02-08Merge pull request #8323 from bluetech/setupstate-refactor-3Ran Benita
runner: a few more tweaks to SetupState
2021-02-08Merge branch 'master' into ↵Bruno Oliveira
dependabot/pip/testing/plugins_integration/django-3.1.6
2021-02-08build(deps): bump django in /testing/plugins_integrationdependabot[bot]
Bumps [django](https://github.com/django/django) from 3.1.5 to 3.1.6. - [Release notes](https://github.com/django/django/releases) - [Commits](https://github.com/django/django/compare/3.1.5...3.1.6) Signed-off-by: dependabot[bot] <support@github.com>
2021-02-08build(deps): bump anyio[curio,trio] in /testing/plugins_integrationdependabot[bot]
Bumps [anyio[curio,trio]](https://github.com/agronholm/anyio) from 2.0.2 to 2.1.0. - [Release notes](https://github.com/agronholm/anyio/releases) - [Changelog](https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst) - [Commits](https://github.com/agronholm/anyio/compare/2.0.2...2.1.0) Signed-off-by: dependabot[bot] <support@github.com>
2021-02-06runner: rename SetupState.prepare -> setupRan Benita
This is the usual terminology we use, and matches better with `teardown_exact()` and `pytest_runtest_setup()`.
2021-01-29Remove some no longer needed type-ignoresRan Benita
2021-01-28Merge pull request #8260 from nicoddemus/faulthandler-mode-X-8258Bruno Oliveira
2021-01-25Only re-enable fauthandler during unconfigure if it was enabled beforeBruno Oliveira
2021-01-25build(deps): bump pytest-cov in /testing/plugins_integrationdependabot[bot]
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 2.10.1 to 2.11.1. - [Release notes](https://github.com/pytest-dev/pytest-cov/releases) - [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-cov/compare/v2.10.1...v2.11.1) Signed-off-by: dependabot[bot] <support@github.com>
2021-01-24runner: add docstring to SetupState and improve variable naming a bitRan Benita
2021-01-24testing: fix some tests to be more realisticRan Benita
Perform the operations in the order and context in which they can legally occur.
2021-01-24testing/test_runner: make SetupState tests use a proper SetupStateRan Benita
Previously the tests (probably unintentionally) mixed a fresh SetupState and the generated item Session's SetupState, which led to some serious head scratching when prodding it a bit.
2021-01-24runner: inline SetupState._pop_and_teardown()Ran Benita
This will enable a simplification in the next commit.
2021-01-24runner: express SetupState.teardown_all() in terms of teardown_exact() and ↵Ran Benita
remove it Makes it easier to understand with fewer methods.
2021-01-24runner: inline a couple of SetupState methodsRan Benita
Code is clearer this way.
2021-01-20Always handle faulthandler stderr even if already enabledBruno Oliveira
It seems the code that would not install pytest's faulthandler support if it was already enabled is not really needed at all, and even detrimental when using `python -X dev -m pytest` to run Python in "dev" mode. Also simplified the plugin by removing the hook class, now the hooks will always be active so there's no need to delay the hook definitions anymore. Fix #8258
2021-01-20Merge pull request #8250 from daq-tools/fix-twisted-captureBruno Oliveira
2021-01-18Fix faulthandler for Twisted Logger when used with "--capture=no"Andreas Motl
The Twisted Logger will return an invalid file descriptor since it is not backed by an FD. So, let's also forward this to the same code path as with `pytest-xdist`.
2021-01-15Deprecate raising unittest.SkipTest to skip tests during collectionRan Benita
It is not very clear why this code exists -- we are not running any unittest or nose code during collection, and really these frameworks don't have the concept of collection at all, and just raising these exceptions at e.g. the module level would cause an error. So unless I'm missing something, I don't think anyone is using this. Deprecate it so we can eventually clear up this code and keep unittest more tightly restricted to its plugin.
2021-01-13unittest: cleanup unexpected success handling (#8231)Anton
* unittest: cleanup unexpected success handling * update comment
2021-01-11Merge pull request #8235 from ↵Bruno Oliveira
pytest-dev/dependabot/pip/testing/plugins_integration/django-3.1.5 build(deps): bump django from 3.1.4 to 3.1.5 in /testing/plugins_integration
2021-01-11build(deps): bump django in /testing/plugins_integrationdependabot[bot]
Bumps [django](https://github.com/django/django) from 3.1.4 to 3.1.5. - [Release notes](https://github.com/django/django/releases) - [Commits](https://github.com/django/django/compare/3.1.4...3.1.5) Signed-off-by: dependabot[bot] <support@github.com>
2021-01-11build(deps): bump pytest-mock in /testing/plugins_integrationdependabot[bot]
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock) from 3.4.0 to 3.5.1. - [Release notes](https://github.com/pytest-dev/pytest-mock/releases) - [Changelog](https://github.com/pytest-dev/pytest-mock/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.4.0...v3.5.1) Signed-off-by: dependabot[bot] <support@github.com>
2021-01-04Merge pull request #8218 from bluetech/reports2Ran Benita
Misc small code improvements
2021-01-04Add dot prefix if file makefile extension is invalid for pathlib (#8222)bengartner
2021-01-01Always use getfixturemarker() to access _pytestfixturefunctionRan Benita
Keep knowledge of how the marker is stored encapsulated in one place.
2021-01-01Merge pull request #8214 from sousajf1/sousajo_patch_8204_1Ran Benita
pytest-dev#8204 migrate tests on testing/code/test_source to tmp_path
2021-01-01pytest-dev#8204 migrate tests on testing/code/test_source to tmp_pathsousajo
2021-01-01pytest-dev#8204 migrate some tests to tmp_path fixture (#8209)sousajf1
migrating some tests from tmpdir to tmp_path fixture
2021-01-01reports: BaseReport.{passed,failed,skipped} more friendly to mypyRan Benita
Not smart enough to understand the previous code.
2020-12-30Fix failing staticmethod tests if they are inherited (#8205)Anton
* Fix failing staticmethod tests if they are inherited * add comments, set default=None
2020-12-30Merge pull request #8195 from ↵Ran Benita
christophebedard/add-missing-space-version-option-help-message Add missing space in '--version' help message
2020-12-30[pre-commit.ci] pre-commit autoupdate (#8201)pre-commit-ci[bot]
* [pre-commit.ci] pre-commit autoupdate * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * manual fixes after configuration update * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Anthony Sottile <asottile@umich.edu>
2020-12-28Add missing space in '--version' help messageChristophe Bedard
2020-12-26python: export pytest.Metafunc for typing purposesRan Benita
The type cannot be constructed directly, but is exported for use in type annotations, since it is reachable through existing public API.
2020-12-26Merge pull request #8174 from bluetech/py-to-pathlib-5Ran Benita
More py.path -> pathlib conversions
2020-12-22Convert most of the collection code from py.path to pathlibRan Benita
2020-12-22testing: convert some tmpdir to tmp_pathRan Benita
The tmpdir fixture (and its factory variant) is soft-deprecated in favor of the tmp_path fixture.
2020-12-22testing/test_config: check inipath instead of inifileRan Benita
inifile is soft-deprecated in favor of inipath.
2020-12-22testing/test_helpconfig: remove unclear commentRan Benita
2020-12-22code: convert from py.path to pathlibRan Benita
2020-12-22Merge pull request #8179 from bluetech/typing-public-markRan Benita
mark: expose Mark, MarkDecorator, MarkGenerator under pytest for typing purposes
2020-12-21build(deps): bump pytest-mock in /testing/plugins_integrationdependabot[bot]
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock) from 3.3.1 to 3.4.0. - [Release notes](https://github.com/pytest-dev/pytest-mock/releases) - [Changelog](https://github.com/pytest-dev/pytest-mock/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.3.1...v3.4.0) Signed-off-by: dependabot[bot] <support@github.com>
2020-12-20mark: export pytest.MarkGenerator for typing purposesRan Benita
The type cannot be constructed directly, but is exported for use in type annotations, since it is reachable through existing public API.
2020-12-19testing/test_nodes: fix fake session to be more accurateRan Benita
The type of _initialpaths is `FrozenSet[Path]`.
2020-12-19doctest: use Path instead of py.path where possibleRan Benita
2020-12-19config: let main() accept any os.PathLike instead of just py.path.localRan Benita
Really it ought to only take the List[str], but for backward compatibility, at least get rid of the explicit py.path.local check.
2020-12-18address commentsantonblr
2020-12-18tests: Migrate to pytester - final updateantonblr