Bahram Farahmand
46c94ee82d
Add note on using mixin classes for abstract test classes in documentation ( #13346 )
2025-04-07 08:02:21 -03:00
Bruno Oliveira
4603564f64
Merge pull request #13264 from pytest-dev/release-8.3.5
...
Release 8.3.5
(cherry picked from commit f004b11caf
)
2025-03-02 10:14:04 -03:00
Bruno Oliveira
87018dbfeb
Merge pull request #13018 from pytest-dev/release-8.3.4
...
Prepare release 8.3.4
(cherry picked from commit 4707416fa1
)
2025-03-02 10:14:01 -03:00
Pierre Sassoulas
475b9c708e
[pre-commit] Upgrade ruff to 0.9.0 / 2025's style
2025-01-11 08:12:44 +01:00
Yann Dirson
831d061a84
Docs: be more precise about TestReport outcome in example ( #12535 )
...
* Testing only for "failed" should not be reported as "or skipped"
* Test for "skipped" explicitly instead
Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
2024-11-18 09:33:56 -03:00
Bruno Oliveira
3905a74b09
Merge pull request #12798 from pytest-dev/release-8.3.3
...
Prepare release 8.3.3
(cherry picked from commit 03d8fb79aa
)
2024-09-10 07:54:15 -03:00
Stephen McDowell
9bde63f2ba
[doc] Fix minor typo in example/parametrize.rst
...
A space is needed for ``ZeroDivisionError`` to render as teletype.
2024-09-06 18:00:11 -04:00
GTowers1
72c682ff97
Streamline checks for verbose option ( #12706 )
...
Instead of calling `Config.option.verbose`, call the new `Config.get_verbosity` function to determine the verbosity level.
This enables pytest to run correctly with the terminal plugin disabled.
Fix #9422
2024-09-05 08:04:12 -03:00
Ronny Pfannschmidt
90d70465ef
Merge pull request #12660 from pytest-dev/release-8.3.2
...
(cherry picked from commit 7b62fef8e1
)
2024-08-01 23:48:06 +02:00
pytest bot
04bac8deaf
Cherry-pick 8.3.0, 8.3.1 release notes
2024-07-20 19:27:14 +03:00
lovetheguitar
66eff85e54
docs: use double quotes for cross-platform compatibility in example code
2024-06-22 19:48:15 +02:00
Sviatoslav Sydorenko (Святослав Сидоренко)
24450e33e3
📝 Use explicit RST roles for built-in types in docs
2024-06-21 22:05:43 +02:00
lovetheguitar
598d881c9c
docs: document keyword argument support in marker expressions
2024-06-21 20:51:01 +02:00
Ronny Pfannschmidt
bbe6b4a218
Merge pull request #12467 from RonnyPfannschmidt/ronny/new-annotations-try-2
...
from __future__ import annotations + migrate
2024-06-21 10:24:56 +02:00
Ronny Pfannschmidt
9295f9ffff
RFC: from __future__ import annotations + migrate
2024-06-20 11:03:03 +02:00
Sviatoslav Sydorenko
39b548e6ea
📝 Make "setuptools entrypoint" term generic
...
This feature grew out of `setuptools` but the modern interface for
extracting this information from the distribution package metadata
is `importlib.metadata`. So the patch attempts to reflect this in
the documentation messaging.
Refs:
* https://docs.python.org/3/library/importlib.metadata.html#entry-points
* https://packaging.python.org/en/latest/guides/creating-and-discovering-plugins/#using-package-metadata
* https://packaging.python.org/en/latest/specifications/entry-points/#entry-points
2024-06-20 11:01:10 +02:00
Ran Benita
4cd80e19c5
Merge pull request #12415 from pytest-dev/release-8.2.2
...
Prepare release 8.2.2
(cherry picked from commit f3a494cca3
)
2024-06-04 16:52:15 +03:00
pytest bot
32baa0b93d
Prepare release version 8.2.1
...
(cherry picked from commit 66ff8dffdf
)
2024-05-19 22:11:09 +03:00
Josh Soref
8d00811822
Spelling and minor changes ( #12122 )
2024-05-15 13:49:34 -03:00
dj
2ede8778d0
Document using PYTEST_VERSION to detect if a code is running inside pytest ( #12153 )
...
Related to #9502
2024-04-28 15:52:29 -03:00
Bruno Oliveira
79ca819e59
Merge pull request #12257 from pytest-dev/release-8.2.0
...
Prepare release 8.2.0
(cherry picked from commit 69c3bcea36
)
2024-04-27 20:36:02 -03:00
Bruno Oliveira
93c2cdf6d6
cherry-pick release-8.1.2 ( #12252 )
...
(cherry picked from commit 7df3dbc545
)
2024-04-26 15:25:44 -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
Ran Benita
e410705561
Cherry-pick 8.1.0 release notes
...
(cherry picked from commit 0a536810dc
)
2024-03-03 23:27:02 +02:00
Ran Benita
7460b1aa31
Cherry pick 8.0.2 release notes
...
(cherry picked from commit e53f798932
)
2024-02-25 00:25:49 +02: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
Ran Benita
a182e10b06
Enable lint PGH004 - Use specific rule codes when using noqa
2024-02-09 11:14:36 +02: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
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
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
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
Ran Benita
0f18a7fe5e
Remove deprecated nose support
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
385796ba49
Rework Session and Package collection
...
Fix #7777 .
2023-12-10 17:01:39 +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
ryanpudd
3ab70cd561
Use hyphenated cmdline options in docs ( #11490 )
...
Fix #11091
2023-10-10 21:16:24 +00:00
Bruno Oliveira
0a06db0729
Merge pull request #11408 from pytest-dev/release-7.4.2 ( #11409 )
...
Prepare release 7.4.2
(cherry picked from commit b0c4775a28
)
2023-09-07 16:10:19 -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
Christoph Anton Mitterer
b8b74331b4
Improve docs for Parametrizing conditional raising ( #11279 )
...
What one typically actually wants in such a case is both, checking for some
resulting values *and* checking for some expected exception.
Since this is easily possible with the `nullcontext` context manager, adapt the
example accordingly (needlessly using a different name rather just confuses people).
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
2023-08-03 13:31:17 -03:00
Ran Benita
497a1d798a
doc/example/parametrize: a few fixes/improvements
...
Remove "Indirect" from a few section names -- not actually indirect.
Also few minor updates to the related multipython.py example.
2023-07-20 09:51:11 +03:00
Ran Benita
b41acaea12
Switch to new-style pluggy hook wrappers
...
Fix #11122 .
2023-07-14 22:47:48 +03:00
Ran Benita
b73ec8e5d1
doc: fix EncodingWarnings in examples ( #11158 )
...
Otherwise the warnings show in the regen output.
2023-07-08 15:40:05 -03:00
Ran Benita
1a17539065
Merge pull request #10853 from stefmolin/patch-1
...
Update fixture scope in package/directory fixture example.
2023-06-06 17:04:45 +03:00
Jarrett Keifer
751d726d21
nonpython example now repr all exceptions
...
The definition of `repr_failure` on the `YamlItem` subclass only handled the custom `YamlException` class, which hides all other errors from the user. By adding in the `super` call we ensure all other exception types also appropriately handled by `repr_failure`.
2023-05-23 20:06:05 -07:00
Ran Benita
bf47357511
Merge pull request #10881 from pytest-dev/release-7.3.0
...
Prepare release 7.3.0
(cherry picked from commit cec5bfe058
)
2023-04-09 00:50:37 +03:00
Stefanie Molin
f1c7585184
Update fixture scope in package/directory fixture example.
2023-03-31 10:00:45 -07:00
Ronny Pfannschmidt
54864f0c9b
bugfix: fix imports for simple example
2023-03-17 21:58:26 +01:00
Ronny Pfannschmidt
ba969d2ae7
run regendoc
2023-03-17 21:58:26 +01: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