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
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
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
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
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
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
github-actions[bot]
cac1eed0ea
[automated] Update plugin list ( #11534 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-10-21 23:43:14 -03:00
github-actions[bot]
dd68f9c95a
[automated] Update plugin list ( #11504 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-10-15 10:03:38 -03:00
github-actions[bot]
2401d76655
[automated] Update plugin list ( #11487 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-10-09 08:32:49 -03:00
github-actions[bot]
d015bc1b8f
[automated] Update plugin list ( #11472 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-10-02 08:39:53 -03:00
pytest bot
c614590ec9
[automated] Update plugin list
2023-09-24 00:18:30 +00:00
github-actions[bot]
8bac8d7807
[automated] Update plugin list ( #11443 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-09-18 13:20:47 -03:00
github-actions[bot]
24a6ee1ffd
[automated] Update plugin list ( #11422 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-09-10 13:09:41 +00:00
Stefaan Lippens
3ce63bc768
Improve plugin list disclaimer ( #11397 )
...
Closes #11391
2023-09-06 07:34:38 -03:00
github-actions[bot]
4e3a0874df
[automated] Update plugin list ( #11380 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-09-02 22:13:17 -03:00
Bruno Oliveira
f08782d8d0
Merge pull request #11377 from pytest-dev/release-7.4.1
...
Prepare release 7.4.1
(cherry picked from commit 82eb86f707
)
2023-09-02 12:45:58 -03:00
Sean Patrick Malloy
76ba7db6ce
Improve docs for last-failed-no-failures
...
Improve documentation for last-failed-no-failures to make the different options and the functionality more clear.
Closes #11354
2023-08-29 00:14:45 +00:00
github-actions[bot]
17e8f2b3fc
[automated] Update plugin list ( #11358 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-08-27 11:29:17 -03:00
Ran Benita
77f7f59b2a
Fixes for typed pluggy
...
Since version 1.3 pluggy added typing, which requires some fixes to
please mypy.
2023-08-26 22:13:24 +03:00
github-actions[bot]
4deb38b2ed
[automated] Update plugin list ( #11329 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-08-21 13:19:58 +00:00
Ran Benita
370eacd3ca
doc/reference: replace Unicode dashes with ascii `-` in cli flags ( #11323 )
2023-08-21 14:40:03 +02:00
Ran Benita
1827d8d5f9
doc: fix a few `pytest.mark.xfail` nits
...
Refs #9027 , #10094 .
2023-08-12 18:30:58 +03:00
Florian Bruhin
1c04a92503
doc: Link pytest.main to how-to guide ( #11287 )
2023-08-06 12:39:11 +02:00
Ronny Pfannschmidt
1ded74739b
update-plugin-list: use json, use http caching, use gh action caches
...
this change
* switches from html index usage to json index usage
* adds using requests-cache as http cache to trim down runtime
* adds gh action caches for pip and the new http cache
2023-07-20 15:04:41 +02:00
pytest bot
a668719626
[automated] Update plugin list
2023-07-16 00:28:56 +00:00
Ran Benita
fb55615d5e
Export `FixtureDef`
...
FixtureDef is used in the `pytest_fixture_setup` hook so needs to be
public. However since its current internals are quite dubious (and not
all marked with `_` prefix) I've added an explicit note that only
documented fields/methods are considered public.
Refs #7469 .
2023-07-15 10:06:06 +03:00
pytest bot
a3b4220d76
[automated] Update plugin list
2023-07-09 00:29:15 +00:00
Bruno Oliveira
fd7a4d2429
Merge pull request #11106 from bluetech/docs-ref-collection-objs
...
reference: improve the node types docs a bit
2023-07-08 15:41:22 -03:00
github-actions[bot]
b847084224
[automated] Update plugin list ( #11159 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-07-03 11:45:17 -03:00
pytest bot
1306b84241
[automated] Update plugin list
2023-06-25 00:27:02 +00:00
Ran Benita
1b7896f83d
Add PytestRemovedIn9Warning
...
It's good to have it available already in all 8.* versions, even if it's
not used yet.
2023-06-23 16:42:26 +03:00
Ran Benita
a14745550a
Merge pull request #11131 from pytest-dev/release-7.4.0
...
Prepare release 7.4.0
(cherry picked from commit fb03d1388b
)
2023-06-23 14:19:51 +03:00
Ran Benita
1e8135df16
reference: add note that `pythonpath` does not affect `-p`
...
Fix #11118 .
2023-06-22 15:45:20 +03:00
github-actions[bot]
fa09f6dcc6
[automated] Update plugin list ( #11117 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-06-18 09:40:52 -03:00
Ran Benita
bd88a6412d
reference: separate node types to their own section
...
I think it's helpful to separate the node classes from the other
objects, as they have their own unique usage.
I've chosen not to alphabetize the order, but to use a logical order
instead.
Also slightly improve the docstrings.
2023-06-14 15:57:56 +03:00
Ran Benita
264e7ac327
reference: add doc for `Package`
...
We document the other py collectors, we should document `Package` as
well.
2023-06-14 09:51:37 +03:00
pytest bot
fc9cbbd4c4
[automated] Update plugin list
2023-06-06 14:05:44 +00:00
pytest bot
1daa8129c6
[automated] Update plugin list
2023-06-04 00:26:58 +00:00
pytest bot
5313d50e18
[automated] Update plugin list
2023-05-28 00:22:05 +00:00
Chris Mahoney
4f3f36c396
Add alias `--config-file` to `-c` ( #11036 )
...
Fixes #11031
Signed-off-by: Chris Mahoney <chrismahoey@hotmail.com>
Co-authored-by: Chris Mahoney <chrismahoey@hotmail.com>
2023-05-26 07:56:18 -03:00
github-actions[bot]
9e491f430e
[automated] Update plugin list ( #11027 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-05-21 10:47:02 -03:00
Roberto Aldera
9fa82598a9
Use NamedTuple for pytest_report_teststatus return value ( #10972 )
...
Closes #10872
---------
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2023-05-19 08:24:28 -03:00
Ville Skyttä
6041511fb4
Spelling and grammar fixes ( #11014 )
2023-05-18 10:10:44 -03:00
github-actions[bot]
612489e2bd
[automated] Update plugin list ( #11001 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-05-15 08:26:41 -03:00
Bruno Oliveira
faeb16146b
Consider testpaths for initial conftests
...
The 'testpaths' option is meant to be identical to execute
pytest passing the 'testpaths' directories explicitly.
Fix #10987
2023-05-12 09:34:15 -03:00
Bruno Oliveira
b241c0b479
Fix defaults for tmp_path_retention_count and tmp_path_retention_policy in docs
2023-05-12 09:34:15 -03:00
github-actions[bot]
a88ae8289c
[automated] Update plugin list ( #10968 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-05-09 19:05:13 -03:00
pytest bot
be774667c2
[automated] Update plugin list
2023-04-30 00:23:40 +00:00
Bryan Ricker
158f41fdf8
Fix documentation typo ( #10942 )
2023-04-25 10:49:16 +02:00
pytest bot
15156757b6
[automated] Update plugin list
2023-04-23 00:21:26 +00:00
pytest bot
28783e5d23
[automated] Update plugin list
2023-04-16 00:21:39 +00:00
pytest bot
22951bba67
[automated] Update plugin list
2023-04-09 00:22:30 +00:00
github-actions[bot]
31d0b51039
[automated] Update plugin list ( #10857 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-04-04 13:17:43 -03:00
github-actions[bot]
a3b39069bc
[automated] Update plugin list ( #10838 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-03-26 08:32:13 -03:00
github-actions[bot]
172c832cbd
[automated] Update plugin list ( #10823 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-03-24 11:41:07 -03:00
Ronny Pfannschmidt
ba969d2ae7
run regendoc
2023-03-17 21:58:26 +01:00
github-actions[bot]
7af1e4e4ed
[automated] Update plugin list ( #10810 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-03-12 13:04:50 -03:00
Stefanie Molin
0ae04ae629
Include `pyproject.toml` in help section that lists out config files with ini-options ( #10807 )
2023-03-11 10:59:02 -03:00
Paul Kehrer
a869141b3d
New option to allow a progress report even when capture=no ( #10755 )
2023-03-07 17:49:37 -03:00
pytest bot
1d48b3021d
[automated] Update plugin list
2023-03-05 00:25:29 +00:00
Billy
88c9e92258
Minor updates to fixtures docs ( #10724 )
...
Updated the c fixture to be a little more consistent with other fixtures in the corresponding image. for example both e and g both have edges connected with the fixtures that they explicitly depend on.
2023-02-28 12:42:33 -03:00
github-actions[bot]
13ea4780b8
[automated] Update plugin list ( #10752 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-02-27 08:55:33 -03:00
bitzge
051f8f1f0f
Add CI and BUILD_NUMBER env var in docs ( #10749 )
2023-02-18 18:52:14 -03:00
github-actions[bot]
9048621002
[automated] Update plugin list ( #10726 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-02-12 21:39:45 -03:00
github-actions[bot]
9c93c96b14
[automated] Update plugin list ( #10707 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-02-07 07:59:57 -03:00
github-actions[bot]
4a46ee8bc9
[automated] Update plugin list ( #10699 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-01-30 10:15:02 -03:00
Yusuke Kadowaki
10220d3f31
Change the default policy to all
2022-12-25 00:18:38 +09:00
pytest bot
39b6bb551c
[automated] Update plugin list
2022-12-04 00:20:05 +00:00
github-actions[bot]
fd30759d94
[automated] Update plugin list ( #10536 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2022-11-29 09:14:38 +00:00
github-actions[bot]
7710e18b4c
[automated] Update plugin list ( #10519 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2022-11-22 08:05:40 -03:00
Yusuke Kadowaki
cca029d55e
Add configuration options to control how `tmp_path` directories are kept ( #10442 )
...
Close #8141
2022-11-15 09:11:39 -03:00
pytest bot
593178d909
[automated] Update plugin list
2022-11-13 00:22:21 +00:00
pytest bot
a006dabf6e
[automated] Update plugin list
2022-11-08 11:13:43 +00:00
Ronny Pfannschmidt
5a040aef97
Merge pull request #10412 from pytest-dev/release-7.2.0 ( #10419 )
...
Prepare release 7.2.0
(cherry picked from commit ac4e3cced9
)
2022-10-25 13:12:55 +02:00
Thomas Grainger
8a40fc5315
PytestReturnNotNoneWarning now subclasses PytestRemovedIn8Warning ( #10196 )
...
As discussed in https://github.com/pytest-dev/pytest/pull/9956#issuecomment-1132710934 .
Also added PytestRemovedIn8Warning to the reference docs.
2022-10-09 20:10:45 -03:00
pytest bot
f53b49c8c4
[automated] Update plugin list
2022-09-11 00:22:18 +00:00
Bruno Oliveira
77e34526e8
Merge pull request #10225 from nicoddemus/sort-fixtures-docs
2022-09-06 08:33:27 -03:00
pytest bot
50f390f015
[automated] Update plugin list
2022-09-04 00:23:26 +00:00
github-actions[bot]
0fc3a977a9
[automated] Update plugin list ( #10253 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2022-08-29 17:49:38 -03:00
pytest bot
932264d8fd
[automated] Update plugin list
2022-08-21 00:21:46 +00:00