Yusuke Kadowaki
f513d33d5a
Modify documentation to use `.stash` when storing test results. ( #10535 )
2022-11-27 22:09:56 +02: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
Florian Bruhin
2f33ea87c8
Remove done trainings ( #10471 )
2022-11-04 18:38:09 +01:00
Florian Bruhin
646a46e5f4
Edit changelog for 7.2.0 ( #10423 )
...
Fix some typos, and consolidate two entries for the same feature into one.
2022-10-25 19:47:16 +02:00
Anthony Sottile
bbec1ce67f
upgrade pygments-pytest for 7.2.x coloring
2022-10-25 10:52:53 -04: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
Itxaso Aizpurua
9e1804a6ee
Add --log-disable CLI option ( #10371 )
...
Fixes #7431
2022-10-23 18:23:34 -03:00
Tony Narlock
7fada7127e
docs(output): Note --no-show-locals
2022-10-14 16:38:14 -05:00
Ofek Lev
86602ce6e0
Fix packaging example
2022-10-12 11:51:26 -04:00
Thomas Grainger
246ceb84bd
Update doc/en/deprecations.rst
2022-10-10 13:58:05 +01:00
Thomas Grainger
2fd160110c
Merge branch 'main' into warn-when-a-mark-is-applied-to-a-fixture
2022-10-10 13:55:24 +01:00
pre-commit-ci[bot]
0de2aa93f0
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-10-10 11:30:13 +00:00
Thomas Grainger
d86df89a92
Update doc/en/deprecations.rst
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2022-10-10 12:28:22 +01: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
Vivaan Verma
196f01965e
Replace entrypoint example with `pyproject.toml` in docs ( #10359 )
...
Fixes #10344
2022-10-09 17:42:42 -03:00
Simon K
3bf2bc55b1
Add deprecations for tests written for `nose` ( #9907 )
...
Fixes #9886
2022-10-09 17:16:33 -03:00
Thomas Grainger
5c286d19d8
Update doc/en/deprecations.rst
2022-10-09 20:11:51 +01:00
Thomas Grainger
faac197fcf
Merge branch 'main' into warn-when-a-mark-is-applied-to-a-fixture
2022-10-09 20:10:53 +01:00
Samuel Gaist
a28d595b46
doc: add note to help modernize code bases to use pathlib
...
Fixes #10199
2022-10-08 10:18:08 +02:00
wodny
2bc036e50a
Mention pythonpath confval in Good Integration Practices ( #10314 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-07 13:03:13 -03:00
Bruno Oliveira
79c2e92bb8
Merge pull request #10349 from nicoddemus/doc-setup-teardown-nose
2022-10-07 11:48:09 -03:00
Florian Bruhin
9be1e3fac8
doc: Add second day for enterPy training ( #10348 )
2022-10-07 16:13:05 +02:00
Bruno Oliveira
0c21d60349
Improve documentation for setup() and teardown() nose support
...
Fix #9549
2022-10-07 11:10:28 -03:00
Thierry Moisan
06007de7ba
Fix a few broken links in the documentation
2022-10-05 10:24:55 -04:00
Ronny Pfannschmidt
0fdacb6db5
deprecate hook configuration via marks/attributes
...
fixes #4562
2022-09-20 16:22:26 +02:00
Fredrik Berndtsson
246129089c
doc: Fix 404 'identify flaky test' link ( #10244 )
2022-09-15 23:34:22 +02:00
Florian Bruhin
34765f6b2e
doc: Add link for enterPy training ( #10299 )
2022-09-15 17:07:02 +02:00
pytest bot
f53b49c8c4
[automated] Update plugin list
2022-09-11 00:22:18 +00:00
skhomuti
c326bd5669
Add allure-pytest to the popular plugins list
2022-09-08 22:12:44 +05:00
Florian Bruhin
1e0aa16908
Update open trainings
2022-09-07 14:48:49 +02: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
Bruno Oliveira
7f4b63b143
Merge pull request #10259 from pytest-dev/release-7.1.3
...
Prepare release 7.1.3
(cherry picked from commit 3739e6cd4830cf707dff3fb5c5b93d7a2cec3663)
2022-09-02 08:24:18 -03:00
Philipp A
245a8c23dd
Revamp good practices ( #10206 )
...
* Recommend importlib import mode for new projects
* Recommend src layout more strongly
* Switch to hatchling as the packaging tool in the example (following PyPA)
* Add explanation about the different import modes
2022-09-01 07:55:41 -03:00
Bruno Oliveira
a9bbfb87d6
Merge pull request #10252 from nicoddemus/fix-regendoc
...
Fix regendoc
2022-08-31 14:32:36 -03:00
Bruno Oliveira
1caa099e42
Fix regendoc
...
The finalizers example was wiping out code needed for the examples below.
2022-08-31 14:28:33 -03: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
Sviatoslav Sydorenko
71aa1388e0
Drop `wheel` from `pyproject.toml` example
...
It is unnecessary and has been deleted from the setuptools' docs too.
The setuptools' PEP 517 build backend implementation has been
auto-adding the `wheel` dependency since it's first been implemented.
2022-08-19 19:01:40 +02:00
Tatiana Ovary
3039391b83
Update documentation on how pytest.warns affects DeprecationWarning #9291 ( #10141 )
...
Co-authored-by: Dani Sancas <lord.sancas@gmail.com>
On-behalf-of: @clarityai-eng <tech@clarity.ai>
Signed-off-by: Tatiana Ovary <tatiana.ovary@clarity.ai>
2022-08-17 11:44:58 -03: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
aizpurua23a
7378f35b03
Update fixtures.rst w/ finalizer order
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2022-08-15 14:00:03 -03:00
Bruno Oliveira
2e7c718373
Add reference to the Where to patch docs in monkeypatch.setattr ( #10217 )
...
This should help users with the common issue of patching the wrong place.
Also took the opportunity of using proper links in the monkeypatch introduction.
Related to #10216
Co-authored-by: Ran Benita <ran@unusedvar.com>
2022-08-15 13:55:19 -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
Bruno Oliveira
6c57cc1727
Merge pull request #10158 from albertvillanova/patch-3
2022-07-23 14:01:38 -03:00
Albert Villanova del Moral
8c5487fd6b
Fix cross-reference in reference/reference docs
2022-07-20 00:01:23 +02:00
Albert Villanova del Moral
4696ba74f9
Fix typo in example/markers docs
2022-07-19 22:16:14 +02:00
Stephen Rosen
b8e2f42ec1
Add monkeypatch.context() to how-to doc intro
2022-07-15 19:26:36 +00:00
Wolfremium
70cac3d464
Explicit note that tmpdir fixture is discouraged in favour of tmp_path #9937 ( #10138 )
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
Co-authored-by: kevin.hierro-ext <kevin.hierro-ext@clarity.ai>
Co-authored-by: Dani Sancas <lord.sancas@gmail.com>
2022-07-15 08:40:18 -03:00
pytest bot
dda7673f57
[automated] Update plugin list
2022-07-10 00:24:23 +00:00
Florian Bruhin
4449bdc068
Remove europython training ( #10107 )
2022-07-06 13:05:08 +02:00
pytest bot
04de180f41
[automated] Update plugin list
2022-07-03 00:22:59 +00:00
Anthony Sottile
1b47de7d7f
update does_not_raise docs now that pytest is 3.7+ only
2022-06-29 13:13:15 -04: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
Bruno Oliveira
11fb5cd331
Merge pull request #10054 from SnoopJeDi/doc/xfail-multiple-exceptions
...
Indicate support for a tuple of exceptions in xfail raises=
2022-06-26 09:54:18 -03:00
pytest bot
62d975a69e
[automated] Update plugin list
2022-06-26 00:25:07 +00:00
Zac Hatfield-Dodds
d2a206683c
Merge pull request #10073 from Kache/main
...
Clarify writing_plugins naming instructions
2022-06-24 23:27:58 -07:00
Kevin C
0a7b8722e5
Clarify writing_plugins naming instructions
...
Fixes : #10072
2022-06-23 18:03:18 -07:00
Bruno Oliveira
aa55975c7d
Doc: Clear mailbox before deleting the user ( #10068 )
2022-06-23 21:47:39 -03:00
pre-commit-ci[bot]
cba65e74b3
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-06-22 15:32:05 +00:00
Chanvin Xiao
1e6a587363
Doc: Clear mailbox before deleting the user
2022-06-22 20:06:37 +08: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
Bruno Oliveira
2cd41651bb
Merge pull request #10031 from The-Compiler/trainings
...
Update training list
2022-06-14 07:31:06 -03:00
pytest bot
1a50e5222f
[automated] Update plugin list
2022-06-12 00:22:15 +00:00
Florian Bruhin
27c94f573c
Update training list
2022-06-10 15:40:53 +02:00
Sandro Tosi
fe2c74cb1a
Update location of `usage.rst` to fix manpage compilation
...
`usage.rst` has been moved from `doc/en` to `doc/en/how-to`, so the `man_pages` configuration
value needs to be updated to the new location, so that we dont get this warning:
writing... WARNING: "man_pages" config value references unknown document usage
2022-06-07 14:43:34 -04: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
Tony Narlock
c2f684fcd6
docs(monkeypatch): Fix autodoc reference links ( #10013 )
...
Close #10014
2022-06-02 10:16:59 -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
Bruno Oliveira
6017666fe1
Do not advertise that importlib will be default import mode
...
It is clear at this point that changing the default would break a lot of suites, and is not a clear win in all cases anyway.
Close #10003
2022-05-31 09:53:23 -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
Tim Hoffmann
9a9acf13f8
Declutter doc entry page ( #9969 )
...
- Remove the index page https://docs.pytest.org/en/7.1.x/genindex.html
Such an index is reasonable in books but not so much in HTML pages.
IMHO the integrated search is much more user-friendly and sufficient.
- Remove the PDF link from the entry page. The PDF is already linked
in the sidebar. I anticipate that getting the PDF documentation is
not a major concern for users.
- Remove the sections "Changelog" and "License" from the entry page.
These section only contain links to the respective pages.
These topics are purely technical. They should be easily accessible
(which they still are through sidebar section "About the project"),
but they don't need additional advertisement through a dedicated
section on the entry page.
2022-05-24 10:23:39 +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
Bruno Oliveira
08c0eb661e
Merge pull request #9968 from timhoffm/doc-reference-order
2022-05-17 07:55:06 -03: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
Tim Hoffmann
73c2d1c6e3
Remove "Python 2.7 and 3.4 Support" from globaltoc
...
Follow up to #9957 - I missed that the globaltoc is hard-coded
and the page needs to be removed there as well.
2022-05-16 22:52:27 +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
5d28a58640
Remove docs on Python 2.7 and 3.4 Support ( #9957 )
...
This extensive explanation is not need anymore because they are now
unsupported for a long time.
Instead add as short section on Python version compatibility in the
backward compatibility docs.
2022-05-16 10:17:18 +02:00
Ruth Comer
c5432a18e7
doc: link to pytest-subtests
2022-05-12 12:20:00 +01:00
Pax
a88c0f3bb0
Add link to python docs on logging levels ( #9925 )
2022-05-11 11:02:36 +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
MatthewFlamm
5f9d68c8d9
Clarify precision when using NUMBER option in --doctest-modules ( #9914 )
...
Fix #9892
2022-05-06 20:25:44 -03:00
pytest bot
306b33e755
[automated] Update plugin list
2022-05-01 00:24:20 +00:00
Florian Bruhin
e580534df0
doc: Reformat/Modernize some code ( #9900 )
...
Found because I was curious what https://pypi.org/project/shed/ does with pytest.
2022-04-28 16:30:16 +02:00
pytest bot
21091a45d0
[automated] Update plugin list
2022-04-24 00:19:03 +00:00
Bruno Oliveira
246815de13
Prepare release version 7.1.2 ( #9881 )
...
Co-authored-by: pytest bot <pytestbot@gmail.com>
(cherry picked from commit df9df5574913b2e7753b8cf6ebbf06ed9fbde10d)
2022-04-23 11:38:26 -03: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
gresm
61095e4ba6
Update goodpractices.rst
...
Fix example package tree.
2022-04-16 15:51:21 +02:00
pytest bot
765583dc34
[automated] Update plugin list
2022-04-10 00:17:14 +00:00
Anthony Sottile
1527130476
temporarily pin jinja2 version for docs build
2022-04-08 17:08:30 -04: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
Ran Benita
a18655f729
Merge pull request #9785 from pytest-dev/release-7.1.1
...
Prepare release 7.1.1
(cherry picked from commit b9462ed7d0b665778c908ab311015a49ece4f20e)
2022-03-17 23:18:11 +02:00
Ran Benita
5c1756343f
Merge pull request #9757 from pytest-dev/update-plugin-list/patch-d306ec0a7
...
[automated] Update plugin list
2022-03-16 21:32:11 +02:00
Ran Benita
d87e1e67dd
Merge pull request #9758 from pytest-dev/release-7.1.0
...
Prepare release 7.1.0
(cherry picked from commit 7d4d1ecde6cdc3feae9ee076ee5aab4e05393fa6)
2022-03-13 16:59:20 +02:00
pytest bot
61f2b265a3
[automated] Update plugin list
2022-03-13 00:15:56 +00:00
Florian Bruhin
d306ec0a7e
Update upcoming trainings ( #9744 )
...
* Update upcoming trainings
* Remove old-ish link
* Revert "Remove old-ish link"
This reverts commit 30d75f50887ca08d26aa02b6048f5334b40cf251.
* Use crossref
* Add past training
2022-03-12 16:51:56 +01:00
Fabian Egli
7f924b13a5
Fix typo in deprecation documentation
2022-03-11 11:15:28 +01: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
Kojo Idrissa
e466a87bb0
Add the latest book edition of 'Python Testing with pytest'
2022-02-25 19:13:23 -03:00
Ran Benita
4778e999a5
Merge pull request #9702 from m-tmatma/feature/fix-bash-complete
...
fix link of argcomplete page.
2022-02-23 19:30:40 +02:00
Ran Benita
7b6e477e2f
Revert "Deprecate raising unittest.SkipTest to skip tests during collection" ( #9710 )
...
This reverts commit 25e657bfc1
.
Turns out that this *is* a working unittest feature, which pytest should
support, so undo the deprecation.
2022-02-23 15:59:54 +02: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
Masaru Tsuchiyama
7f50c521b6
fix link of argcomplete page.
2022-02-20 17:29:12 +09:00
Bruno Oliveira
9af3e23695
Expand warnings output for ResourceWarning ( #9682 )
...
Fix #9644
2022-02-15 13:00:50 +00:00
pytest bot
295e7535c9
[automated] Update plugin list
2022-02-13 00:15:13 +00:00
Bruno Oliveira
68be319165
Merge pull request #9674 from pytest-dev/release-7.0.1
...
(cherry picked from commit 18d35b817de7a8a0b416eefbb54a323f9ba90d21)
2022-02-11 15:52:00 -03:00
Ran Benita
04a6f52d67
Merge pull request #9611 from pllim/patch-1
...
DOC: pytest.warns() fails on zero warning
2022-02-08 16:00:06 +02:00
Ran Benita
b80472c5bc
doc: fix a reference
2022-02-08 00:53:17 +02:00
Ran Benita
1612d3d1af
doc: remove django intersphinx mapping
...
Initially I just wanted to fix http -> https, but I think it's not worth
having at all just for this one reference.
2022-02-08 00:46:20 +02:00
pytest bot
2c3be75b09
[automated] Update plugin list
2022-02-06 00:13:55 +00:00
P. L. Lim
d1b394af88
DOC: pytest.warns() fails on zero warning
2022-02-04 17:45:04 -05:00
Gabor Szabo
57f8f5d2b3
Mention basetemp in docs as a way to only keep last temp dir ( #9607 )
...
Closes #9599
2022-02-04 12:38:26 +00:00
Florian Bruhin
48f01bdcc2
doc: Hide done training ( #9602 )
...
Only commenting out as I expect to add trainings at PyConDE and possibly PyConIT soon
2022-02-04 12:12:58 +01:00
Florian Bruhin
dfa7023862
Prepare release 7.0.0 ( #9598 ) ( #9604 )
...
* Prepare release version 7.0.0
* Add note to changelog
Co-authored-by: pytest bot <pytestbot@gmail.com>
Co-authored-by: Florian Bruhin <me@the-compiler.org>
(cherry picked from commit e37fbe5685d330cbe7819c5a08d0a524df7299bf)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-02-04 07:48:24 -03:00
pytest bot
321747628e
[automated] Update plugin list
2022-01-30 00:12:51 +00:00
Florian Bruhin
843f03e3ca
doc: Add ellipsis to warning usecase list ( #9558 )
...
I feel like this makes it clearer where the code which was inside 'pytest.warns' is supposed to go.
2022-01-27 13:32:37 +01:00
Florian Bruhin
396a7def75
Add additional docs for uncooperative ctor deprecation ( #9498 )
...
* Add additional docs for uncooperative ctor deprecation
Fixes #9488
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Break up long line
* Recommend kwonly args
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-27 11:49:18 +01: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
Olga Matoula
2ad1b589af
Add docs on pytest.warns(None) deprecation ( #9495 )
...
* Add docs on pytest.warns(None) deprecation
* Add new section for common warnings use cases
* Fix references for warnings use cases
* Fix reference link
2022-01-13 18:32:22 +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
Dan Alvizu
71baf24b6d
Doc update: clarify -W syntax ( #9464 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2022-01-04 13:55:01 +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
Ran Benita
b9663fed6f
Merge pull request #9442 from hramezani/drop_python_36
...
Drop Python3.6 in CI, setup.cfg, and readme.
2021-12-30 12:22:13 +02:00
Hasan Ramezani
e5bf3784a4
Update required Python version in docs.
2021-12-28 15:15:52 +01:00
Hasan Ramezani
3d7cd77017
Update syntax to Python3.7+.
2021-12-28 10:11:35 +01:00
Ran Benita
0db1ff0d82
doc: document {Code,TracebackEntry}.path changes as breaking
...
Closes #9423 .
2021-12-27 15:27:38 +02: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
Hasan Ramezani
5599c5ad45
Drop Python3.6 in CI, setup.cfg, and readme.
2021-12-26 21:08:37 +01: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
Ran Benita
8071ad6b90
doc: fix a reference in "Writing hook functions"
2021-12-25 10:30:59 +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
0f39f11d88
Remove deprecated `pytest.collect` module
2021-12-07 22:27:35 +02:00
Ran Benita
41d8fb09ca
Remove deprecated `pytest_warning_captured` hook
2021-12-07 22:27:35 +02:00
Ran Benita
0b0e2d2dbb
Remove deprecated `_fillfuncargs` function
2021-12-07 22:27:35 +02:00
Éric
b691d31897
fix typo
2021-12-07 18:16:59 +02:00
Florian Bruhin
5cb50fa13c
Fix changelog URL in 7.0.0rc1 announcement ( #9379 )
...
The changelog does not exist at /stable because an rc isn't stable...
2021-12-07 10:04:55 +00: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
Florian Bruhin
3a479db126
Fix hook param name in nonpython example ( #9373 )
...
Follow up to #9363
2021-12-06 22:55:06 +01:00
Florian Bruhin
663be09723
Improve reference and path/fspath docs ( #9341 )
...
* Improve reference and path/fspath docs
Closes #9283
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fixups
* Add explanation
* Update wording after #9363
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-06 11:25:05 +01:00
pytest bot
72b7334f1d
[automated] Update plugin list
2021-12-05 00:12:43 +00:00
Bruno Oliveira
a335ade1f5
Rename pathlib hook parameters ( #9363 )
...
* Rename pytest_ignore_collect fspath parameter to collection_path
* Rename pytest_collect_file fspath parameter to file_path
* Rename pytest_pycollect_makemodule fspath parameter to module_path
* Rename pytest_report_header startpath parameter to start_path
* Rename pytest_report_collectionfinish startpath parameter to start_path
* Update docs with the renamed parameters
* Use pytest-flakes fork temporarily to prove it works
* Use pytest-flakes 4.0.5
2021-12-03 13:14:09 +01:00
Bruno Oliveira
ed24f29e60
Change copyright notice so yearly updates are not needed
...
Just learned that we don't need to do this every year: https://hynek.me/til/copyright-years
Followed Go's example of only stating the starting year: https://github.com/golang/go/blob/master/LICENSE
Btw any ideas why the dates vary? Some start in 2004, others 2013, 2015... shouldn't be the same year for all locations?
2021-11-30 09:28:23 -03:00
Ben Davies
86bcaad828
Fix output of example test method.
2021-11-30 14:55:05 +11:00
pytest bot
7de752a50b
[automated] Update plugin list
2021-11-28 00:12:22 +00:00
Florian Bruhin
8436d695e5
Fix doc issues in deprecation change ( #9336 )
...
Follow-up to #9309 .
The issue in the changelog broke the docs build with:
doc/en/_changelog_towncrier_draft.rst:47: WARNING: Inline literal start-string
without end-string.
The second change isn't as critical, but caused the text to be rendered as
monospace including the tilde (i.e. `~pytest.PytestDeprecationwarning`).
2021-11-25 09:43:23 +01:00
Ran Benita
df9e94fbca
Change deprecation warnings into errors for 7.0 release, using a new mechanism ( #9309 )
2021-11-21 17:13:44 +02: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
Ran Benita
128f29ee35
Categorize deprecation warnings to `PytestRemovedInXWarning`
...
Closes #7480 .
This allows us to more easily follow our deprecation policy of turning
warnings into errors for the X.0 releases before complete removal in
X.1.
It also makes the deprecation timeline clear to both the users and
pytest developers -- it can be hard to keep track.
Note that the designation is not meant to be a binding contract - if the
time comes for removal of a specific deprecation but we decide it's too
soon, can just bump it to the next major.
Inspired by Django:
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/submitting-patches/#deprecating-a-feature
2021-11-14 23:57:10 +02:00
Bruno Oliveira
3dc17f1c3b
Merge pull request #9293 from hoefling/doc/extlinks-gh-user
2021-11-13 10:57:37 -03:00
Ran Benita
062d91ab47
python: remove the `Instance` collector node
2021-11-13 14:03:44 +02:00
Eddie
a76df875c7
Remove space inside of dotted attribute
2021-11-10 12:54:21 -08:00
oleg.hoefling
2f1096cd55
replace hardcoded links to github user profiles with extlinks
...
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-11-10 20:47:27 +01:00
Florian Bruhin
f9afcd2d8a
More pytest 7 changelog fixes ( #9285 )
...
* Remove changelog entry for #8251
Reverted in #8903
* Move #9202 changelog to to trivial
This won't concern users of pytest
* Streamline deprecation changelogs/docs
* Remove #8994 changelog
This is an impovement for a warning introduced in this release, so including it in a changelog against the last release seems confusing.
* Remove #9241 changelog
This is an impovement for a doc update introduced in this release, so including it in a changelog against the last release seems confusing. The issue number also seems about something different.
* Remove #8897 changelog
Empty file...
* Various minor changelog fixes
2021-11-10 15:16:24 +01: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
Bruno Oliveira
b378f9a6e0
Merge pull request #9276 from hoefling/doc/extlinks-bpo
2021-11-08 09:41:26 -03:00
Bruno Oliveira
13d23a2dd5
Merge pull request #9275 from hoefling/doc/extlinks-gh-pull
2021-11-08 09:39:50 -03: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.hoefling
16e15b99ae
sphinx 3 compat
...
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-11-07 15:24:57 +01:00
oleg.hoefling
36265ccbf6
replace hardcoded links to bugs.python.org with extlinks
...
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-11-07 15:24:57 +01:00
oleg.hoefling
bba0ce4877
replace hardcoded links to github pull requests with extlinks
...
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-11-07 15:18:36 +01: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
andrewdotn
1824349f74
Use Ubuntu 20.04, lualatex for readthedocs builds ( #9242 )
2021-10-30 11:21:14 -03: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
Ran Benita
1df28a4450
Move testdir 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
b7fc0003fd
Merge pull request #9232 from bluetech/deprecate-node-fspath-args
...
Deprecate Node constuctor fspath argument, and other small changes/fixes
2021-10-27 09:26:57 +03:00
Ran Benita
7706fd6840
nodes: deprecate fspath arguments to node constructors
...
This is unfortunately a dependency on `py.path` which cannot be moved to
an external plugins or eased in any way, so has to be deprecated in
order for pytest to be able to eventually remove the dependency on `py`.
2021-10-27 08:36:10 +03:00
Ran Benita
99363ad7ff
recwarn: fix was -> were in DID NOT WARN message
2021-10-27 08:36:10 +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
60ca83746b
docs: change references to 6.3 -> 7.0
...
The plans have changed, next version will be 7.0 not 6.3.
2021-10-23 22:49:55 +03:00
Ran Benita
755ce9bc80
hookspec: improve legacy path deprecation docs
2021-10-23 22:49:54 +03: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
Ran Benita
7314b32b63
doc: modernize discussion of setup.py in "Good Integration Practices"
2021-10-22 10:24:39 +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
Bruno Oliveira
5fc7b21391
Use xelatex engine for better Unicode support ( #9197 )
2021-10-12 10:12:15 -03:00
James Myatt
ccd3874d7a
Recommend not integrating with setuptools ( #9185 )
2021-10-11 15:28:27 +03:00
Ran Benita
da3b3012b1
Merge pull request #9184 from bluetech/reportinfo-pathlike
...
[7.0] Change `Node.reportinfo()` return value from `py.path` to `str|os.PathLike[str]`
2021-10-11 14:33:03 +03: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
Ran Benita
7eee5c1634
Change `Node.reportinfo()` return value from `py.path` to `str|os.PathLike[str]`
...
`reportinfo()` is the last remaining py.path-only code path in pytest,
i.e. the last piece holding back py.path deprecation. The problem with
it is that plugins/users use it from both sides -- implementing it
(returning the value) and using it (using the return value). Dealing
with implementers is easy enough -- allow to return `os.PathLike[str]`.
But for callers who expect strictly `py.path` this will break and
there's not really a good way to provide backward compat for this.
From analyzing a corpus of 680 pytest plugins, the vast majority of
`reportinfo` appearances are implementations, and the few callers don't
actually access the path part of the return tuple.
As for test suites that might access `reportinfo` (e.g. using
`request.node.reportinfo()` or other ways), that is much harder to
survey, but from the ones I searched, I only found case
(`pytest_teamcity`, but even then it uses `str(fspath)` so is unlikely
to be affected in practice). They are better served with using
`node.location` or `node.path` directly.
Therefore, just break it and change the return type to
`str|os.PathLike[str]`.
Refs #7259 .
2021-10-09 15:02:03 +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
Zac Hatfield-Dodds
e763fde482
Merge pull request #9158 from hoefling/doc/internal-crossrefs
...
replace hardcoded urls to docs.pytest.org with internal crossrefs, add crossrefs to numpy docs, use sphinx pep role
2021-10-05 08:43:19 +11:00
oleg.hoefling
3926526c95
revert changes in doc/en/announce
...
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-10-04 20:06:13 +02:00
Ronny Pfannschmidt
028eb6fab6
Merge pull request #9115 from RonnyPfannschmidt/fix-regendoc
...
fix #8818 - run regendoc without tox cachedir
2021-10-04 19:11:45 +02:00
Bruno Oliveira
c4557c3192
Merge pull request #9150 from nicoddemus/issue-9141-fixture-docs
2021-10-04 09:48:19 -03:00
Ronny Pfannschmidt
c21ef7ba22
fix #8818 - run regendoc without tox cachedir
...
#4270 introduced per tox env pytest cachedirs and
never protected regendoc against it
2021-10-04 08:56:26 +02:00
oleg.hoefling
d58ee2b677
replace hardcoded urls to docs.pytest.org with internal crossrefs, add external crossrefs where possible
...
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-10-04 00:23:41 +02:00
pytest bot
618ee0f268
[automated] Update plugin list
2021-10-03 00:11:19 +00:00
Bruno Oliveira
ac3614b999
Add note about fixture teardown and SIGTERM and SIGQUIT signals
...
Close #9141
2021-10-01 16:12:03 -03:00
Ran Benita
f65dfc39f3
Merge pull request #9123 from pytest-dev/update-plugin-list/patch-112204cf8
...
[automated] Update plugin list
2021-10-01 16:31:59 +03:00
Ran Benita
4b13b5993e
Fix syntax typo in writing_hook_functions.rst
2021-10-01 10:26:56 +03:00
pytest bot
4a016db7b4
[automated] Update plugin list
2021-09-26 00:11:24 +00:00
Ran Benita
037d2903be
Merge pull request #9112 from bluetech/plugin-list-escape
...
scripts/update-plugin-list: escape summary for special RST chars
2021-09-22 17:00:07 +03:00
Ran Benita
4ae4bec968
scripts/update-plugin-list: escape summary for special RST chars
...
A new plugin has this summary:
Continiously runs pytest on changes in *.py files
The `*` is interpreted as a special character and fails the CI.
Add some rudimentary escaping to hopefully prevent this.
2021-09-22 16:39:15 +03:00
Bruno Oliveira
bec42f7b0b
Merge pull request #9092 from nicoddemus/cleanup-projects-page
2021-09-22 10:28:45 -03:00
Ran Benita
cf5b7a0958
Merge pull request #9103 from pytest-dev/update-plugin-list/patch-60e995d90
...
[automated] Update plugin list
2021-09-22 15:55:49 +03:00
ziebam
520aa61e19
Improve docs for pytester.copy_example
2021-09-22 00:16:52 +02:00
pytest bot
86fc02bfcb
[automated] Update plugin list
2021-09-19 00:10:14 +00:00
Bruno Oliveira
c761c45cf9
Remove obsolete projects page from docs
...
The projects page unfortunately contains a lot of old projects, and some information there appears to be stale.
It was created at a time pytest was starting to be used, but seems pointless now as pytest is the most popular testing framework, so listing a few dozen projects which use it seems pointless.
Rather than updating it, I think we should remove it because this has the chance to become stale again soon, and not sure how valuable it is anyway.
2021-09-14 08:04:49 -03:00
Simon K
0e7bb34081
adding contact and badge for pytest-dev discord server ( #9078 )
...
* adding badges/docs for pytest-dev discord and pytest libera web chat
2021-09-12 18:22:44 +01:00
pytest bot
0407c62121
[automated] Update plugin list
2021-09-12 00:11:27 +00:00
Florian Bruhin
1c1dcf27c8
Remove finished open training
2021-09-09 22:29:34 +02:00
Zac Hatfield-Dodds
8900e3b937
Merge pull request #9041 from hoefling/doc/stdlib-crossrefs
2021-09-07 21:22:24 +10:00
pytest bot
1f00461e57
[automated] Update plugin list
2021-09-05 00:09:51 +00:00
Andrew Neitsch
a9edfdf9db
Run black on conf.py
2021-09-02 20:42:29 -06:00
Andrew Neitsch
b46d5f4657
Only use inkscapeconverter if inkscape installed
2021-09-02 20:40:17 -06:00
Andrew Neitsch
e929d15848
Include figures in PDF docs
...
The PDF documentation on readthedocs was missing the figures in the
fixtures reference chapter. This PR uses a Sphinx plugin that
automatically converts the checked-in SVG files to the PDF input files
that LaTeX requires.
The SVG-to-PDF conversion is done by inkscape, which gave the best
conversion among the tools I tried. However, it [does not yet
understand][href-bug] that you can write a plain `href` instead of
`xlink:href` in svg files, so I’ve had to edit the SVG files
accordingly.
[href-bug]: https://github.com/TeX-Live/luatex.git
2021-09-02 17:40:41 -06:00
Simon K
740abd9684
#9062 - Allow `--stepwise-skip` to implicitly enable `--stepwise` ( #9064 )
...
* #9062 - Allow `--stepwise-skip` to implicitly enable `--stepwise`
* Update changelog/9062.improvement.rst
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2021-08-30 19:24:14 +01:00
Bruno Oliveira
ea5ff44ef3
Merge pull request #9057 from pytest-dev/release-6.2.5
...
(cherry picked from commit 16664a1b72c668161553b64e741492206af441bc)
2021-08-30 14:44:49 -03:00
pytest bot
544ecce677
[automated] Update plugin list
2021-08-29 00:09:53 +00:00
oleg.hoefling
d1aea7d7a8
use intersphinx crossrefs to stdlib docs where possible instead of hardcoded URLs
...
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-08-26 16:05:03 +02:00
Bruno Oliveira
109bc2649d
Adapt docs references to use pluggy 1.0
...
Also use the intersphinx reference instead of the class directly.
2021-08-26 09:52:05 -03:00
William Jamir Silva
696bf96c83
Fix typo in fixture.rst
2021-08-24 09:32:40 -03:00
pytest bot
1b130d4404
[automated] Update plugin list
2021-08-22 00:09:13 +00:00
Emmanuel Meric de Bellefon
ec2099e057
Update index.rst
2021-08-21 11:11:37 +02:00
Florian Bruhin
c9870480e0
doc: Update trainings ( #9022 )
2021-08-19 18:40:19 +02:00
Hugo van Kemenade
5ec89fd6e5
Docs: refer to non-deprecated unittest alias
2021-08-18 12:43:59 +03:00
Bruno Oliveira
0f79fc6dbb
Merge pull request #8752 from azmeuk/issue-7132-syntax-highlight-themes
2021-08-15 09:06:41 -03:00
pytest bot
1cbb67f71b
[automated] Update plugin list
2021-08-15 00:09:52 +00:00
Éloi Rivard
7770dacb8d
pygments themes are customizable
2021-08-13 19:15:01 +02:00
Terje Runde
2439729413
logging: Make it possible to add cli colors to custom log levels
...
Closes #8803
PR #8804
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
Co-authored-by: Terje Runde <terje.runde@flir.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-09 13:48:47 +00:00
pytest bot
4d2944e1d4
[automated] Update plugin list
2021-08-08 00:10:10 +00:00
pytest bot
fed18fb76d
[automated] Update plugin list
2021-08-01 00:10:10 +00:00
Simon K
c27db3bd8e
Deprecate pytest_cmdline_preparse
...
Close #8592
PR #8956
2021-07-31 10:53:43 -03:00
Emmanuel Arias
2834b39b65
Add examples of parametrizing classes and all tests in a module
...
Closes #8947
PR #8962
2021-07-31 13:26:25 +00:00
Ran Benita
6247a95601
Merge pull request #8920 from bluetech/stabilize-store
...
Rename Store to Stash and make it public
2021-07-31 10:32:30 +03:00
symonk
a9a934e8ce
fix minor typo in writing hook functions documentation
2021-07-31 01:49:53 +01:00
pytest bot
8b5b3575a0
[automated] Update plugin list
2021-07-25 00:08:36 +00:00
Ran Benita
c6bdeb8491
stash: make Stash and StashKey public
...
It's had enough time to bake - let's allow external plugins to use it.
2021-07-24 17:40:08 +03:00
Bruno Oliveira
5e39f43e7c
contact.rst: Added github discussions
...
Ported from #8932
2021-07-23 09:40:11 -03:00
pytest bot
0a1f58a912
[automated] Update plugin list
2021-07-18 00:08:39 +00:00
Thomas Grainger
388691a205
rename tmpdir.rst to tmp_path.rst ( #8905 )
2021-07-14 12:53:27 -03:00
Bruno Oliveira
69356d20cf
Merge pull request #8903 from nicoddemus/remove-fspath-deprecation
...
Revert fspath deprecation
2021-07-14 09:32:48 -03:00
Bruno Oliveira
828fde1156
Merge pull request #8858 from The-Compiler/update-doc-urls
2021-07-14 09:28:46 -03:00
Bruno Oliveira
2c4c57e135
Revert fspath deprecation
...
It is not clear yet how we should proceed with this deprecation
because `pytest.Item.reportinfo` is public API and returns a `py.path` object,
and is not clear how plugins and our examples should handle that.
Reverting just the deprecation aspect of #8251 so we can get a 7.0.0 release out.
We will reintroduce the deprecation later once we have a clear path moving forward with replacing `reportinfo`.
Closes #8445
Closes #8821
2021-07-13 08:24:39 -03:00
pytest bot
b6648219ec
[automated] Update plugin list
2021-07-11 00:08:26 +00:00
Adam J. Stewart
17f1a0af8e
Fix in more places, use default
2021-07-08 12:43:10 -05:00
Sören Wegener
6740fb9da6
doc: Typofix in fixtures how-to ( #8860 )
2021-07-06 14:31:21 +00:00
Florian Bruhin
953fdabaf0
Adjust doc links for new scheme
...
Closes #8831
2021-07-06 09:11:35 +02:00
Florian Bruhin
8347b59295
Update remaining 7.0 references ( #8834 )
2021-07-04 10:27:43 +02:00
Srip
9cdb7223b5
doc: Adding the missing sys import ( #8819 ) ( #8827 )
...
Co-authored-by: Sripradha Karkala <sripradha.karkala@nutanix.com>
2021-06-30 08:11:20 +02:00
Florian Bruhin
ba1ad7d517
Opt-out from regendoc for problematic example ( #8810 )
...
* Opt-out from regendoc for problematic example
See #8807
* Add comment
2021-06-28 17:47:49 +00:00
Srip
6573107b97
doc: Adding exit code for pytest usage examples ( #8790 ) ( #8800 )
...
* doc: Adding exit code for pytest usage examples (#8790 )
Fix #8790
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
Co-authored-by: Sripradha Karkala <sripradha.karkala@nutanix.com>
2021-06-27 13:29:16 +00:00
pytest bot
f0e5640497
[automated] Update plugin list
2021-06-27 00:08:04 +00:00
Florian Bruhin
cb1dba0489
doc: Add new open trainings ( #8793 )
2021-06-24 20:21:22 +02:00
Ronny Pfannschmidt
d7b0e17205
issue a warning when Item and Collector are used in diamond inheritance ( #8447 )
...
* issue a warning when Items and Collector form a diamond
addresses #8435
* Apply suggestions from code review
Co-authored-by: Ran Benita <ran@unusedvar.com>
* Return support for the broken File/Item hybrids
* adds deprecation
* ads necessary support code in node construction
* fix incorrect mypy based assertions
* add docs for deprecation of Item/File inheritance
* warn when a non-cooperative ctor is encountered
* use getattr instead of cast to get the class __init__ for legacy ctors
* update documentation references for node inheritance
* clean up file+item inheritance test
enhance docs
move import upwards
Co-authored-by: Ran Benita <ran@unusedvar.com>
2021-06-24 11:45:32 +02:00
James Bourbeau
942789bace
Fix API links in 'How to capture warnings' documentation page ( #8792 )
2021-06-23 19:34:48 +00:00
Florian Bruhin
e44300de7e
doc: Add history page ( #8784 )
...
Based on #8667
2021-06-23 20:26:08 +02:00
Bruno Oliveira
7eb0792cba
Add pytest.version_tuple
...
This adds `pytest.version_tuple`, which makes it simpler for users to do something depending on the pytest version, such as declaring hooks which are introduced in later versions.
This feature was added originally in https://github.com/pypa/setuptools_scm/pull/475 .
Followup to https://github.com/pytest-dev/pytest/pull/7605 .
2021-06-14 09:04:14 -03:00
pytest bot
5ea541d415
[automated] Update plugin list
2021-06-13 00:10:04 +00:00
Bruno Oliveira
c85b21eaa0
Remove outdated docs about pytest.warns and DeprecatedWarning
...
Since #2908 , the user doesn't need to set warning filters to capture
`DeprecationWarning` with `pytest.warns`.
Fix #8666
2021-06-12 12:09:26 -03:00
Bruno Oliveira
fb7e36b2f7
Merge pull request #8735 from pytest-dev/update-plugin-list/patch-8300b266a
...
[automated] Update plugin list
2021-06-12 10:49:02 -03:00
Jason Haugen
479209bde1
Fix typo in fixture.rst
...
Example referenced the wrong function name
2021-06-09 15:13:48 -07:00
pytest bot
50b166ff0b
[automated] Update plugin list
2021-06-06 00:17:08 +00:00
Dominic Davis-Foster
7fb5a9d033
Fix typo (setupttools -> setuptools)
2021-06-05 16:03:59 +01:00
Florian Bruhin
9ad726a9a0
Switch to irc.libera.chat ( #8722 )
2021-06-01 17:34:29 +02:00
Bruno Oliveira
360ce686f1
Merge pull request #8713 from pytest-dev/update-plugin-list/patch-43faea832
...
[automated] Update plugin list
2021-05-31 10:54:38 -03:00
Denis Laxalde
cf7425d22b
Fix a typo in documentation about tmpdir_factory
...
The section refers to tmpdir_factory, but the sentence mentionned
tmp_path_factory.
2021-05-31 09:36:18 +02:00
pytest bot
4b7d8b2edd
[automated] Update plugin list
2021-05-30 00:23:19 +00:00
Bruno Oliveira
43faea832d
Merge pull request #8704 from offbyone/doc-getting-started-test-instance
...
Make the test class instance behaviour clearer
2021-05-26 18:42:37 -03:00
MapleCCC
627b446252
Fix cyclic links in goodpractices.rst
2021-05-27 04:33:49 +08:00
Chris Rose
640b2c0e13
Make the test class instance behaviour clearer
...
In the "Getting Started" doc, the test class instance example for
instance sharing doesn't actually demonstrate anything about the
reinstantiation of the class. This change shows clearly how the instance
data isn't retained between test runs.
2021-05-26 09:12:29 -07:00
Florian Bruhin
1d5ee4dd7c
doc: Remove training sidebar ( #8701 )
2021-05-26 14:15:00 +02:00
Ran Benita
1ba5b48565
Merge pull request #8697 from bluetech/expose-config
...
config: expose Config and PytestPluginManager for typing purposes
2021-05-26 11:20:42 +03:00