summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-01-04Add dot prefix if file makefile extension is invalid for pathlib (#8222)bengartner
2021-01-02Merge pull request #8216 from xuhdev/testdir-pytesterRan Benita
DOC: Update multiple references to testdir to pytester
2021-01-01DOC: Update multiple references to testdir to pytesterHong Xu
In https://docs.pytest.org/en/stable/reference.html#testdir, it is suggested: > New code should avoid using testdir in favor of pytester. Multiple spots in the documents still use testdir and they can be quite confusing (especially the plugin writing guide).
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
2020-12-31Add missing fixture (#8207)mefmund
Co-authored-by: Florian Bruhin <me@the-compiler.org> Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
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-29Merge pull request #8194 from bluetech/typing-public-3Ran Benita
Export pytest.Metafunc and pytest.Callinfo, hide NodeKeywords
2020-12-28Merge pull request #8188 from antonblr/subprocess-coverageRan Benita
coverage: Include code that runs in subprocesses
2020-12-28Add missing space in '--version' help messageChristophe Bedard
2020-12-26coverage: Include code that runs in subprocessesantonblr
2020-12-26runner: export pytest.CallInfo 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. This also documents `from_call` as public, because at least pytest-forked uses it, so we must treat it as public already anyway.
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-26nodes: avoid needing to expose NodeKeywords for typingRan Benita
It adds no value over exporting just the ABC so do that to reduce the API surface.
2020-12-26Merge pull request #8174 from bluetech/py-to-pathlib-5Ran Benita
More py.path -> pathlib conversions
2020-12-22Merge pull request #8185 from bluetech/revert-docs-pygments-workaroundBruno Oliveira
Revert "doc: temporary workaround for pytest-pygments lexing error"
2020-12-22Merge pull request #8187 from pytest-dev/asottile-patch-1Bruno Oliveira
Add badge for pre-commit.ci
2020-12-22Add badge for pre-commit.ciAnthony Sottile
See #8186
2020-12-22Revert "doc: temporary workaround for pytest-pygments lexing error"Ran Benita
Support was added in pytest-pygments 2.2.0. This reverts commit 0feeddf8edb87052402fafe690d019e3eb75dfa4.
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-22pathlib: missing type annotation for fnmatch_exRan Benita
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-21Merge pull request #8180 from ↵Bruno Oliveira
pytest-dev/dependabot/pip/testing/plugins_integration/pytest-mock-3.4.0 build(deps): bump pytest-mock from 3.3.1 to 3.4.0 in /testing/plugins_integration
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-20mark: export pytest.MarkDecorator 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-20mark: export pytest.Mark 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-19terminal: remove unused union arm in WarningReport.fslocationRan Benita
2020-12-19Merge pull request #8168 from antonblr/testdir-to-pytester-incr2Ran Benita
tests: Migrate to pytester - final update
2020-12-18address commentsantonblr
2020-12-18tests: Migrate to pytester - final updateantonblr
2020-12-18Merge pull request #8172 from pytest-dev/revert-8171-fix-ci-setup-pythonAnthony Sottile
Use new pypy3 github actions syntax
2020-12-18Use new pypy3 github actions syntaxAnthony Sottile
2020-12-18Revert "infra: Temporary pin setup-python GH action to v2.1.4"Anthony Sottile
2020-12-18Merge pull request #8171 from antonblr/fix-ci-setup-pythonBruno Oliveira
infra: Temporary pin setup-python GH action to v2.1.4
2020-12-17infra: Temporary pin setup-python GH action to v2.1.4antonblr
2020-12-17Add Changelog to setup.cfg (#8166)Adam Johnson
Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2020-12-17Merge pull request #8162 from nicoddemus/rm-travis-badgeBruno Oliveira
2020-12-17Remove other references to TravisBruno Oliveira
2020-12-17Merge pull request #8152 from bluetech/empty-skipRan Benita
terminal: fix "(<Skipped instance>)" skip reason in test status line