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 ac4e3cced9fb1df60df271cce308f07713764857)
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
Bruno Oliveira
832100955a
Sort fixtures in reference.rst alphabetically
...
While taking a look at the docs I noticed they were not properly sorted.
This just moves the sections around so they are sorted alphabetically, without any other changes.
2022-08-17 11:40:03 -03:00
github-actions[bot]
f425dfc158
[automated] Update plugin list ( #10214 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2022-08-14 05:07:01 -03:00
Ran Benita
7431750bb6
doc: have tighter control on what autodoc shows
...
New versions of sphinx starting showing `__init__` parameters even when
we don't want them to show because they are private (have `_ispytest`
argument).
The only working solution I found was to switch to
`autodoc_typehints_description_target = "documented"` and explicitly
document parameters for which we want to show the types. It's a little
tedious and repetitive in some simple cases, but overall it results in
nicer API docs.
2022-08-13 21:46:49 +03:00
Ran Benita
cb7f5ed3b1
doc: require sphinx 5
...
Fix #9836 .
2022-08-13 21:45:54 +03:00
github-actions[bot]
abd5df4b3c
[automated] Update plugin list ( #10194 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2022-08-12 11:06:48 +02:00
pytest bot
c0e3071fdf
[automated] Update plugin list
2022-07-31 00:22:46 +00:00
pytest bot
3bf15135e4
[automated] Update plugin list
2022-07-24 00:25:01 +00:00
Albert Villanova del Moral
8c5487fd6b
Fix cross-reference in reference/reference docs
2022-07-20 00:01:23 +02:00
pytest bot
dda7673f57
[automated] Update plugin list
2022-07-10 00:24:23 +00:00
pytest bot
04de180f41
[automated] Update plugin list
2022-07-03 00:22:59 +00:00
Bruno Oliveira
9a037a5713
Merge pull request #10076 from pytest-dev/update-plugin-list/patch-aafac5578
...
[automated] Update plugin list
2022-06-26 10:54:01 -03:00
pytest bot
62d975a69e
[automated] Update plugin list
2022-06-26 00:25:07 +00:00
James Gerity
17c385180d
Indicate support for a tuple of exceptions in xfail raises=
2022-06-16 11:39:41 -04:00
Chris Wheeler
fab696dcd1
Add support for .pytest.ini as an alternative to pytest.ini
...
Closes #9987
2022-06-14 08:24:35 -03:00
pytest bot
1a50e5222f
[automated] Update plugin list
2022-06-12 00:22:15 +00:00
github-actions[bot]
433c7376c5
[automated] Update plugin list ( #10020 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2022-06-05 12:44:38 -03:00
Hugo van Kemenade
e54c6a1362
Document the --code-highlight default ( #9883 )
...
Also normalized all help text using the patterns:
* `One sentence help text`
* `First sentence of help. Second sentence of help.`
2022-05-31 16:32:51 -03:00
github-actions[bot]
e547cd565d
[automated] Update plugin list ( #10001 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2022-05-29 13:04:53 -03:00
Cheuk Ting Ho
c988e49af6
Warn when test functions return other than None ( #9956 )
...
Closes #7337
2022-05-25 09:48:02 -03:00
github-actions[bot]
31f9e5bcdd
[automated] Update plugin list ( #9985 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2022-05-24 11:12:31 +02:00
Jon Parise
8ac6dce2c7
Add shell-style wildcard support to 'testpaths' ( #9897 )
...
This is especially useful for large repositories (e.g. monorepos) that
use a hierarchical file system organization for nested test paths.
src/*/tests
The implementation uses the standard `glob` module to perform wildcard
expansion in Config.parse().
The related logic that determines whether or not to include 'testpaths'
in the terminal header was previously relying on a weak heuristic: if
Config.args matched 'testpaths', then its value was printed. That
generally worked, but it could also print when the user explicitly used
the same arguments on the command-line as listed in 'testpaths'. Not a
big deal, but it shows that the check was logically incorrect.
Now that 'testpaths' can contain wildcards, it's no longer possible to
perform this simple comparison, so this change also introduces a public
Config.ArgSource enum and Config.args_source attribute that explicitly
names the "source" of the arguments: the command line, the invocation
directory, or the 'testdata' configuration value.
2022-05-24 10:20:51 +02:00
Tim Hoffmann
ee10ecdf7e
Reorder the reference guides in the docs
...
This changes the order to:
- API Reference
- Fixtures reference
- Configuration
- Exit codes
- Plugin List
which is approximately sorted from general to specific and often used to less used.
Plugin List ist at the end because it points to further external resources.
2022-05-16 23:01:54 +02:00
github-actions[bot]
7b977f4beb
[automated] Update plugin list ( #9959 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2022-05-16 08:46:51 -03:00
Tim Hoffmann
231e220635
Move documentation contents from reference.rst to docstrings
...
It's better to have the documentation in one place, instead
of having some in the docstring and some additional
information added to the reference documentation in
`reference.rst`.
2022-05-10 20:04:25 +02:00
Tim Hoffmann
a4a8763ebf
Consistently add **Tutorial**: in front of how-to links in reference
...
Up to now, some had the prefix, some didn't. I think it's good to have
this prefix to give more context, otherwise the links sometimes blend
into the description.
In one case, the link goes to an example, so I used `**Example**:` there.
2022-05-10 16:27:21 +02:00
pytest bot
23c8f3d234
[automated] Update plugin list
2022-05-08 00:18:36 +00:00
pytest bot
306b33e755
[automated] Update plugin list
2022-05-01 00:24:20 +00:00
pytest bot
21091a45d0
[automated] Update plugin list
2022-04-24 00:19:03 +00:00
Zac Hatfield-Dodds
0347957aa7
Fix wrong `log_file` docs ( #9878 )
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2022-04-22 15:15:27 -03:00
github-actions[bot]
6a3168e770
[automated] Update plugin list ( #9864 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2022-04-20 13:08:36 -03:00
pytest bot
765583dc34
[automated] Update plugin list
2022-04-10 00:17:14 +00:00
pytest bot
79725c9102
[automated] Update plugin list
2022-04-03 00:17:36 +00:00
pytest bot
592fee2263
[automated] Update plugin list
2022-03-27 00:19:03 +00:00
pytest bot
e503faeb6e
[automated] Update plugin list
2022-03-20 00:17:32 +00:00
pytest bot
61f2b265a3
[automated] Update plugin list
2022-03-13 00:15:56 +00:00
github-actions[bot]
bc43d66b47
[automated] Update plugin list ( #9733 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2022-03-06 00:01:38 -03:00
github-actions[bot]
cf0a4f79b0
[automated] Update plugin list ( #9717 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2022-03-04 12:56:11 -03:00
github-actions[bot]
0c80a1c836
[automated] Update plugin list ( #9701 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2022-02-23 08:26:18 -03:00
pytest bot
295e7535c9
[automated] Update plugin list
2022-02-13 00:15:13 +00:00
pytest bot
2c3be75b09
[automated] Update plugin list
2022-02-06 00:13:55 +00:00
pytest bot
321747628e
[automated] Update plugin list
2022-01-30 00:12:51 +00:00
Ran Benita
e6166ccc3c
doc/reference: don't document `pytest.__version__` under "Marks"
2022-01-25 22:39:13 +02:00
Bruno Oliveira
2907252693
Merge pull request #9528 from SalmonMode/autouse-linearization-graph
2022-01-24 07:47:43 -03:00
pytest bot
dddadefa68
[automated] Update plugin list
2022-01-23 00:12:46 +00:00
Chris NeJame
1fd0dcd510
fix missing ref to flattened fixture order image
2022-01-19 09:26:07 -05:00
pytest bot
947b5dbc47
[automated] Update plugin list
2022-01-16 00:13:41 +00:00
Emmanuel Arias
5c2d752e74
improve docs
2022-01-13 13:29:08 -03:00
Emmanuel Arias
0fe0b78a9f
Improve on configuration file docs section
...
To avoid confusions the part of that "the configuration file can
be locate on your tests folder" is removed.
2022-01-13 12:52:18 -03:00
pytest bot
f0dab8ba8d
[automated] Update plugin list
2022-01-09 00:12:59 +00:00
github-actions[bot]
56081ca075
[automated] Update plugin list ( #9468 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2022-01-03 18:57:32 +01:00
Kian Meng, Ang
55debfad1f
Fix typos ( #9424 )
2021-12-27 09:23:15 -03:00
Ran Benita
7a42db2bf0
Merge pull request #9443 from bluetech/undocumented-hooks
...
doc/reference: add 4 missing hooks to reference
2021-12-27 11:11:56 +02:00
pytest bot
427f035b76
[automated] Update plugin list
2021-12-26 00:14:18 +00:00
Ran Benita
05d46ca850
doc/reference: add 4 missing hooks to reference
...
Fix #9434 .
2021-12-25 13:54:42 +02:00
pytest bot
a73a9a12a2
[automated] Update plugin list
2021-12-19 00:12:37 +00:00
Ran Benita
0e69c62ece
doc: add a `hook` crossref type
...
Allow writing
🪝 `pytest_cmdline_main`
instead of
:func:`pytest_cmdline_main <_pytest.hookspec.pytest_cmdline_main>`
2021-12-12 16:29:30 +02:00
pytest bot
99a8be200a
[automated] Update plugin list
2021-12-12 00:12:01 +00:00
Ran Benita
41d8fb09ca
Remove deprecated `pytest_warning_captured` hook
2021-12-07 22:27:35 +02:00
Florian Bruhin
0ad452bcba
Prepare release version 7.0.0rc1 ( #9375 ) ( #9377 )
...
Co-authored-by: pytest bot <pytestbot@gmail.com>
(cherry picked from commit 85897eddc6d31c5825f5ca28f85e69b8d1506fc4)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-12-07 10:13:36 +01:00
pytest bot
72b7334f1d
[automated] Update plugin list
2021-12-05 00:12:43 +00:00
pytest bot
7de752a50b
[automated] Update plugin list
2021-11-28 00:12:22 +00:00
github-actions[bot]
4fd897a631
[automated] Update plugin list ( #9326 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2021-11-21 17:12:22 +02:00
Eddie
a76df875c7
Remove space inside of dotted attribute
2021-11-10 12:54:21 -08:00
Simon K
eb6c4493b2
Deprecation of `msg=` for both `pytest.skip()` and `pytest.fail()`. ( #8950 )
...
* porting pytest.skip() to use reason=, adding tests
* avoid adding **kwargs, it breaks other functionality, use optional msg= instead
* deprecation of `pytest.fail(msg=...)`
* fix bug with not capturing the returned reason value
* pass reason= in acceptance async tests instead of msg=
* finalising deprecations of `msg` in `pytest.skip()` and `pytest.fail()`
* Update doc/en/deprecations.rst
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
* Update doc/en/deprecations.rst
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
* fix failing test after upstream merge
* adding deprecation to `pytest.exit(msg=...)`
* add docs for pytest.exit deprecations
* finalising deprecation of msg for pytest.skip, pytest.exit and pytest.fail
* hold a reference to the Scope instance to please mypy
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2021-11-08 15:31:14 +01:00
github-actions[bot]
2792f9184e
[automated] Update plugin list ( #9274 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2021-11-07 23:12:57 +02:00
Oleg Höfling
49f934618c
Replace hardcoded links to Github issues with extlinks ( #9234 )
2021-11-06 11:16:11 +02:00
Ran Benita
b0aa870b11
Export CollectReport and TestReport
...
Refs #7469 .
2021-11-02 20:58:51 +02:00
Ran Benita
a53abe93d8
Merge pull request #9208 from bluetech/legacypath-plugin
...
Add legacypath plugin, move py.path stuff there
2021-11-02 20:35:12 +02:00
pytest bot
81e2d46302
[automated] Update plugin list
2021-10-31 00:11:03 +00:00
Ran Benita
e6eac28f0e
legacypath: only add `testdir` and `tmpdir` fixtures if corresponding plugins are registered
...
This preserves the existing behavior and gives a proper error message
in case e.g. `testdir` is requested without the `pytester` plugin being
loaded.
2021-10-29 13:11:12 +03:00
Ran Benita
5e883f5195
Move tmpdir to legacypath plugin
2021-10-28 21:51:51 +03:00
andrewdotn
bcad6e8e9a
Make plugin list in PDF docs readable ( #9241 )
...
The current PDF docs attempt to format the list of all plugins as a
table, without any word-wrapping of the plugin description. That results
in almost all the information getting cut off. This PR formats the same
information into more of a paragraph format for the PDF, with nothing
cut off.
Fixes #451
2021-10-28 11:31:52 +03:00
Ran Benita
3c5c5feb04
Merge pull request #9230 from bluetech/pytester-transitive-public
...
Export pytester transitive types
2021-10-27 08:05:08 +03:00
pytest bot
2f0e1cd230
[automated] Update plugin list
2021-10-24 00:11:06 +00:00
Ran Benita
11e36c8493
Make transitive Pytester types public
...
Export `HookRecorder`, `RecordedHookCall` (originally `ParsedCall`),
`RunResult`, `LineMatcher`.
These types are reachable through `Pytester` and so should be public
themselves for typing and other purposes.
The name `ParsedCall` I think is too generic under the `pytest`
namespace, so rename it to `RecordedHookCall`.
The `HookRecorder`'s constructor is made private -- it should only be
constructed by `Pytester`.
`LineMatcher` and `RunResult` are exported as is - no private and no
rename, since they're being used.
All of the classes are made final as they are not designed for
subclassing.
2021-10-23 10:59:18 +03:00
Oleg Höfling
1e9e16d829
Replace hardcoded links to PyPI with extlinks ( #9224 )
2021-10-22 09:47:57 -03:00
Bruno Oliveira
4a3834101e
Merge pull request #9209 from pytest-dev/update-plugin-list/patch-0696d3eda
...
[automated] Update plugin list
2021-10-19 06:53:25 -03:00
Bruno Oliveira
20a69e11aa
Merge pull request #9214 from nicoddemus/confcutdir-9210
2021-10-19 06:52:52 -03:00
Bruno Oliveira
c000955dde
Remove incorrect docs about confcutdir being a config option
...
Fix #9210
2021-10-18 19:20:27 -03:00
pytest bot
3cc0c451e7
[automated] Update plugin list
2021-10-17 00:11:56 +00:00
github-actions[bot]
4b417ac38e
[automated] Update plugin list ( #9186 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2021-10-10 12:00:43 -03:00
Bruno Oliveira
fb52fc5163
Merge pull request #9070 from andrewdotn/main
2021-10-05 16:51:58 -03:00
Brian Okken
c82bda259c
Add a `pythonpath` setting to allow paths to be added to `sys.path`. ( #9134 )
2021-10-05 09:36:38 +03:00