pytest bot
2e69f31444
[automated] Update plugin list
2024-03-17 00:20:04 +00:00
Tobias Stoeckmann
2e5da5d2fb
doc: fix typos ( #12118 )
...
* doc: add missing word
* doc: fix typos
Typos found with codespell
2024-03-14 16:36:11 +00:00
Ran Benita
0a442a9599
doc/flaky: remove `box/flaky` plugin suggestion ( #12100 )
...
The plugin is abandoned and no longer working with new pytest versions.
I also reordered a bit to put pytest-rerunfailures first since it seems most maintained and is under pytest-dev.
2024-03-10 11:51:04 -03:00
github-actions[bot]
b777b05c0e
[automated] Update plugin list ( #12098 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2024-03-10 09:57:13 -03:00
Bruno Oliveira
140c777590
Merge pull request #12094 from pytest-dev/release-8.1.1
...
Prepare release 8.1.1
(cherry picked from commit abb0cf4922
)
2024-03-09 08:52:31 -03:00
Levon Saldamli
9033d4d3ff
Parse args from file ( #12085 )
...
Co-authored-by: Ran Benita <ran@unusedvar.com>
Co-authored-by: Bruno Oliveira <bruno@soliv.dev>
2024-03-09 08:51:52 +02:00
Bruno Oliveira
dacee1f11d
Revert "Remove deprecated py.path hook arguments"
...
This reverts commit a98f02d423
.
2024-03-07 19:50:33 -03:00
Bruno Oliveira
303cd0d48a
Revert "Remove deprecated py.path (`fspath`) node constructor arguments"
...
This reverts commit 6c89f9261c
.
2024-03-07 19:50:33 -03:00
Bruno Oliveira
6ee02a3e6c
Yank version 8.1.0
...
Related to #12069
2024-03-04 12:18:14 -03:00
Ran Benita
e410705561
Cherry-pick 8.1.0 release notes
...
(cherry picked from commit 0a536810dc
)
2024-03-03 23:27:02 +02:00
github-actions[bot]
82fe28dae4
[automated] Update plugin list ( #12049 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2024-03-03 12:50:42 +00:00
Bruno Oliveira
d6134bc21e
doc: document consider_namespace_packages option
2024-03-02 16:13:48 -03:00
Bruno Oliveira
5746b8e696
doc: update and improve import mode docs
2024-03-02 16:13:48 -03:00
donghui
4db5e53709
docs: update plugins number
2024-03-01 05:43:57 +08:00
Bruno Oliveira
ffd727e9d6
Fix mention of the prefix for pytest plugins in `plugin_list`
2024-02-24 21:35:51 -03:00
pytest bot
b6eb985d55
[automated] Update plugin list
2024-02-25 00:19:33 +00:00
Ran Benita
7460b1aa31
Cherry pick 8.0.2 release notes
...
(cherry picked from commit e53f798932
)
2024-02-25 00:25:49 +02:00
Patrick Lannigan
84bd31de64
New verbosity_test_case ini option ( #11653 )
...
Allow for the output of test case execution to be controlled independently from the application verbosity level.
`verbosity_test_case` is the new ini setting to adjust this functionality.
Fix #11639
2024-02-24 16:27:54 -03:00
Ran Benita
00d9640abc
Revert "Fix teardown error reporting when `--maxfail=1` ( #11721 )"
...
Fix #12021 .
Reopens #11706 .
This reverts commit 12b9bd5801
.
This change caused a bad regression in pytest-xdist:
https://github.com/pytest-dev/pytest-xdist/issues/1024
pytest-xdist necessarily has special handling of `--maxfail` and session
fixture teardown get executed multiple times with the change.
Since I'm not sure how to adapt pytest-xdist myself, revert for now.
I kept the sticky `shouldstop`/`shouldfail` changes as they are good
ideas regardless I think.
2024-02-23 11:45:26 +02:00
Ben Leith
c5c729e27a
Add --log-file-mode option to the logging plugin, enabling appending to log-files ( #11979 )
...
Previously, the mode was hard-coded to be "w" which truncates the file before logging.
Co-authored-by: Bruno Oliveira <bruno@soliv.dev>
2024-02-21 12:02:19 +00:00
Bruno Oliveira
40011b838b
Allow Sphinx 7.x ( #12002 )
...
Thanks to https://github.com/pytest-dev/pytest/issues/11988#issuecomment-1950318888 , the problem was our custom template.
The solution was to copy the template from Sphinx 7 and remove the header.
2024-02-18 07:21:05 -03:00
Bruno Oliveira
abf6a60567
Fix 'pytest_' mention: it was being considered a rst reference
2024-02-17 22:21:30 -03:00
pytest bot
52da8dd66c
[automated] Update plugin list
2024-02-18 00:19:26 +00:00
Bruno Oliveira
cefb3e2277
Disallow Sphinx 6 and 7 ( #12000 )
...
Using Sphinx 6.x and 7.x the search bar disappears. Restrict to Sphinx 5.x for now until we find a solution.
Reverts #11568
Fixes #11988
2024-02-17 17:46:58 -03:00
Ran Benita
22b541e4eb
Merge pull request #11993 from pytest-dev/release-8.0.1
...
Prepare release 8.0.1
(cherry picked from commit 68524d4858
)
2024-02-17 00:11:27 +02:00
Bruno Oliveira
acafd003aa
Consider pyproject.toml files for config if no other config files were found ( #11962 )
...
Today `pyproject.toml` is the standard for declaring a Python project root, so seems reasonable to consider it for the ini configuration (and specially `rootdir`) in case we do not find other suitable candidates.
Related to #11311
2024-02-14 16:08:45 -03:00
github-actions[bot]
23dfb52974
[automated] Update plugin list ( #11964 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2024-02-10 21:50:24 -03:00
Ran Benita
a182e10b06
Enable lint PGH004 - Use specific rule codes when using noqa
2024-02-09 11:14:36 +02:00
pytest bot
b28bb01c4e
[automated] Update plugin list
2024-02-04 00:19:52 +00:00
Pierre Sassoulas
4588653b24
Migrate from autoflake, black, isort, pyupgrade, flake8 and pydocstyle, to ruff
...
ruff is faster and handle everything we had prior.
isort configuration done based on the indication from
https://github.com/astral-sh/ruff/issues/4670 , previousely based on
reorder-python-import (#11896 )
flake8-docstrings was a wrapper around pydocstyle (now archived) that
explicitly asks to use ruff in https://github.com/PyCQA/pydocstyle/pull/658 .
flake8-typing-import is useful mainly for project that support python 3.7
and the one useful check will be implemented in https://github.com/astral-sh/ruff/issues/2302
We need to keep blacken-doc because ruff does not handle detection
of python code inside .md and .rst. The direct link to the repo is
now used to avoid a redirection.
Manual fixes:
- Lines that became too long
- % formatting that was not done automatically
- type: ignore that were moved around
- noqa of hard to fix issues (UP031 generally)
- fmt: off and fmt: on that is not really identical
between black and ruff
- autofix re-order in pre-commit from faster to slower
Co-authored-by: Ran Benita <ran@unusedvar.com>
2024-02-02 09:27:00 +01:00
Pierre Sassoulas
4546d5445a
Upgrade blacken-doc to black's 2024 style ( #11899 )
2024-01-31 13:53:21 +01:00
Bruno Oliveira
de161f8791
Merge pull request #11896 from nicoddemus/isort
...
Replace reorder-python-imports by isort due to black incompatibility
2024-01-31 08:04:39 -03:00
John Litborn
e885013c6b
fix incorrect example for group_contains ( #11892 )
2024-01-30 12:00:38 -08:00
Bruno Oliveira
8b54596639
Run pre-commit on all files
...
Running pre-commit on all files after replacing reorder-python-imports by isort.
2024-01-30 16:35:46 -03:00
Bruno Oliveira
21bec6cfbe
Add changelog entry about FixtureManager.getfixtureclosure changing ( #11887 )
...
As discussed in #11868 .
2024-01-30 09:41:18 -03:00
github-actions[bot]
8853a57532
[automated] Update plugin list ( #11867 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2024-01-28 13:28:28 +00:00
Ran Benita
c6da0d20d2
Merge pull request #11864 from bluetech/release-8.0.0
...
Prepare release version 8.0.0
(cherry picked from commit 24c681d4ee
)
2024-01-28 00:00:15 +02:00
github-actions[bot]
21440521fa
[automated] Update plugin list ( #11848 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2024-01-22 10:14:58 -03:00
Ran Benita
111ad26f71
doc/writing_plugins: correct inaccuracies re. initial conftest loading
2024-01-18 22:17:55 +02:00
faph
eefc9d47fc
[DOCS] Clarify tmp_path directory location and retention ( #11830 )
...
Fixes #11789 and #11790
2024-01-18 07:21:49 -03:00
Ran Benita
ca5bbd0a9f
Merge pull request #11835 from pytest-dev/release-8.0.0rc2
...
Prepare release version 8.0.0rc2
(cherry picked from commit 97960bdd14
)
2024-01-17 23:45:21 +02:00
Florian Bruhin
e895c9d38c
doc: Remove sold out training ( #11823 )
2024-01-16 14:53:10 +01:00
Florian Bruhin
348e6de102
doc: Update training dates and add pytest sprint ( #11819 )
2024-01-15 21:04:08 +01:00
github-actions[bot]
c6ed86453f
[automated] Update plugin list ( #11811 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2024-01-14 01:04:53 -03:00
mrbean-bremen
82fda31e99
Clarify package scope
...
The behavior of package scope is surprising to some
(as seen by related questions on SO), this should clarify it a bit.
2024-01-12 20:03:30 +01:00
Ran Benita
bd58c09500
Merge pull request #11799 from bluetech/rm-nose-compat_co_firstlineno
...
python: remove support for nose's `compat_co_firstlineno`
2024-01-11 13:13:30 +02:00
Faisal Fawad
996e45d66a
Slight change to tmp_path documentation to more clearly illustrate its behavior ( #11800 )
2024-01-11 11:01:07 +00:00
Ran Benita
c7d85c5dc6
python: remove support for nose's `compat_co_firstlineno`
...
Since we're removing nose support, let's also drop support for this
attribute.
From doing a code search on github, this seems completely unused outside
of nose, except for some projects which used to use it, but no longer
do.
2024-01-10 19:22:19 +02:00
github-actions[bot]
5747a6c06e
[automated] Update plugin list ( #11784 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2024-01-07 10:20:38 -03:00
Ran Benita
f017df443a
Merge pull request #11757 from bluetech/rm-removed-in-8
...
Remove pytest 8 deprecations
2024-01-03 16:53:10 +02:00
Ran Benita
1ba07450e4
doc/deprecations: fix incorrect title level
2024-01-03 14:29:45 +02:00
Ran Benita
215f4d1fab
Remove `PytestRemovedIn8Warning`
...
Per our deprecation policy.
2024-01-03 14:29:45 +02:00
Ran Benita
6c89f9261c
Remove deprecated py.path (`fspath`) node constructor arguments
2024-01-03 14:29:45 +02:00
Ran Benita
a98f02d423
Remove deprecated py.path hook arguments
2024-01-03 14:29:42 +02:00
Marc Bresson
effc2b0529
Clarified `markers` ini property. Fix #11738 ( #11739 )
2024-01-03 14:20:54 +02:00
Ran Benita
0f18a7fe5e
Remove deprecated nose support
2024-01-02 12:20:47 +02:00
Ran Benita
0591569b4b
Remove deprecated pytest.{exit,fail,skip}(msg=...) argument
2024-01-02 12:20:47 +02:00
Ran Benita
477959ef7d
Remove deprecated `pytest.Instance` backward compat
2024-01-02 12:20:47 +02:00
Ran Benita
4147c92b21
Remove deprecated `pytest.warns(None)`
2024-01-02 12:20:47 +02:00
Ran Benita
10fbb2325f
Remove deprecated `Parser.addoption` backward compatibilities
2024-01-02 12:20:47 +02:00
Ran Benita
1f8b39ed32
Remove deprecated `--strict` option
2024-01-02 12:20:47 +02:00
Ran Benita
f4e7b0d6e0
Remove deprecated `pytest_cmdline_preparse` hook
2024-01-02 12:20:47 +02:00
Ran Benita
d3c7ba310c
Merge pull request #11744 from pytest-dev/release-8.0.0rc1
...
Prepare release 8.0.0rc1
(cherry picked from commit 665e4e58d3
)
2024-01-02 10:59:26 +02:00
Ran Benita
a1b6b7473b
Merge pull request #11752 from pytest-dev/release-7.4.4
...
Prepare release 7.4.4
(cherry picked from commit 18dcd9d38d
)
2023-12-31 14:15:46 +02:00
pytest bot
460c38915d
[automated] Update plugin list
2023-12-31 00:20:30 +00:00
Ran Benita
acd445a3f3
Merge pull request #11646 from bluetech/pkg-collect
...
Rework Session and Package collection
2023-12-30 12:51:48 +02:00
pytest bot
f93c0fc34e
[automated] Update plugin list
2023-12-24 00:20:08 +00:00
Michał Górny
52db918a27
Fix handling empty values of NO_COLOR and FORCE_COLOR ( #11712 )
...
* Fix handling empty values of NO_COLOR and FORCE_COLOR
Fix handling NO_COLOR and FORCE_COLOR environment variables to correctly
be ignored when they are set to an empty value, as defined
in the specification:
> Command-line software which adds ANSI color to its output by default
> should check for a NO_COLOR environment variable that, when present
> *and not an empty string* (regardless of its value), prevents
> the addition of ANSI color.
(emphasis mine, https://no-color.org/ )
The same is true of FORCE_COLOR, https://force-color.org/ .
* Streamline testing for FORCE_COLOR and NO_COLOR
Streamline the tests for FORCE_COLOR and NO_COLOR variables, and cover
all possible cases (unset, set to empty, set to "1"). Combine the two
assert functions into one taking boolean parameters. Mock file.isatty
in all circumstances to ensure that the environment variables take
precedence over the fallback value resulting from isatty check (or that
the fallback is actually used, in the case of both FORCE_COLOR
and NO_COLOR being unset).
2023-12-23 10:12:13 +02:00
pytest bot
27f7cee238
[automated] Update plugin list
2023-12-17 00:20:43 +00:00
Arthur Richard
047ba83dab
Improve pytest.exit docs ( #11698 )
...
Fixes #11695
2023-12-14 08:14:36 -03:00
Tom Mortimer-Jones
2b86d2bddc
Typo in fixtures.rst ( #11699 )
2023-12-13 13:24:43 +01:00
Ran Benita
385796ba49
Rework Session and Package collection
...
Fix #7777 .
2023-12-10 17:01:39 +02:00
Ran Benita
c7fcb3f281
Merge pull request #11689 from pytest-dev/update-plugin-list/patch-d1675646f
...
[automated] Update plugin list
2023-12-10 09:59:06 +02:00
Ran Benita
c1339628d6
Merge pull request #11684 from bluetech/docs-nitpicky
...
docs: enable Sphinx nitpicky mode
2023-12-10 09:42:30 +02:00
Ran Benita
397769c45e
Merge pull request #11677 from bluetech/nodes-abc
...
nodes,python: mark abstract node classes as ABCs
2023-12-10 09:41:46 +02:00
pytest bot
5381cd083f
[automated] Update plugin list
2023-12-10 00:20:38 +00:00
Ran Benita
0ae02e2165
nodes,python: mark abstract node classes as ABCs
...
Fixes #11676
2023-12-07 16:41:07 +02:00
Ran Benita
2aa8743bbe
doc: enable Sphinx nitpicky mode
...
See:
https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-nitpicky
This ensures we have no more broken references.
2023-12-07 12:14:45 +02:00
Ran Benita
ee91d095f6
doc: fix more broken Sphinx references
2023-12-07 11:50:02 +02:00
Ran Benita
f76af423b0
doc/reference: document `FixtureLookupError`
2023-12-07 11:50:02 +02:00
Ran Benita
9056db4de5
doc: fix some broken Sphinx references
2023-12-07 00:30:35 +02:00
Ran Benita
a5ee9f2ecd
doc: document `pytest.{hookspec,hookimpl}` in the API Reference
...
Makes sense for them to be there; also allows for Sphinx refs.
2023-12-07 00:11:42 +02:00
github-actions[bot]
714ce2e872
[automated] Update plugin list ( #11658 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-12-03 11:49:36 -03:00
touilleWoman
5689d806cf
Fix "Customizing Colors" documentation section ( #11652 )
...
Fixes #11573
2023-12-01 11:25:01 -03:00
github-actions[bot]
e0d5754d5d
[automated] Update plugin list ( #11640 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-11-26 11:09:03 -03:00
github-actions[bot]
476bab84f7
[automated] Update plugin list ( #11627 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-11-19 11:57:25 -03:00
Patrick Lannigan
9dc1fc4523
Add verbosity_assertions and config.get_verbosity
...
Fixes #11387
2023-11-19 11:56:29 -03:00
Avasam
80442ae2f2
Use `False`, instead of `None` as default for `_XfailMarkDecorator`'s `condition` param and update doc ( #11600 )
2023-11-17 10:42:05 +02:00
github-actions[bot]
99f7738810
[automated] Update plugin list ( #11607 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-11-12 10:41:08 -03:00
github-actions[bot]
e701df5eb6
[automated] Update plugin list ( #11587 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-11-06 18:40:44 -03:00
Bruno Oliveira
70f03dbc3e
Adjustments to assert raises docs ( #11586 )
...
Followup from #11578 .
2023-11-04 12:37:47 -03:00
Bruno Oliveira
1e02797d15
Improve pytest.raises docs ( #11578 )
2023-11-04 10:24:57 +00:00
Ran Benita
8fb7e8b31e
Merge pull request #11567 from bluetech/fix-ref-tocdepth
...
doc/reference: fix sidebar TOC depth
2023-10-30 09:01:54 +02:00
Ran Benita
0d74a1c8a0
doc: allow Sphinx 6.x and 7.x ( #11568 )
...
They seem to work fine, let's allow them.
2023-10-29 23:00:27 +01:00
Ran Benita
4ecf313604
doc/reference: fix sidebar TOC depth
...
Previously, the sidebar TOC had unlimited depth, making it useless and
interfering with the content. This seems to have regressed in pytest
7.2.x going by the RTD version selector.
2023-10-29 21:55:17 +02:00
pytest bot
d0a09d8627
[automated] Update plugin list
2023-10-29 00:19:06 +00:00
Ziad Kermadi
ed8701a57f
Mention -q and -s in the docs ( #11558 )
...
Fixes #11507 .
2023-10-27 14:35:45 -03:00
Bruno Oliveira
c7e9b22f37
Merge pull request #11546 from pytest-dev/release-7.4.3 ( #11549 )
...
Prepare release 7.4.3
(cherry picked from commit 53df6164b4
)
2023-10-24 16:50:13 -03:00
Carsten Grohmann
38f7c1e346
Use pytestconfig instead of request.config in cache example ( #11542 )
...
to be consistent with the API documentation.
2023-10-23 15:45:16 -03:00
Bruno Oliveira
ee53433542
Configure ReadTheDocs to fail on warnings ( #11535 )
...
* Configure ReadTheDocs to fail on warnings
Important to catch broken links and references.
* Remove dead link to distutils configuration docs
2023-10-23 09:56:33 -03:00