mrbean-bremen
82fda31e99
Clarify package scope
...
The behavior of package scope is surprising to some
(as seen by related questions on SO), this should clarify it a bit.
2024-01-12 20:03:30 +01:00
Faisal Fawad
996e45d66a
Slight change to tmp_path documentation to more clearly illustrate its behavior ( #11800 )
2024-01-11 11:01:07 +00:00
Ran Benita
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 665e4e58d3fba8319e922674c286e92f070e6ec3)
2024-01-02 10:59:26 +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
touilleWoman
5689d806cf
Fix "Customizing Colors" documentation section ( #11652 )
...
Fixes #11573
2023-12-01 11:25:01 -03:00
Patrick Lannigan
9dc1fc4523
Add verbosity_assertions and config.get_verbosity
...
Fixes #11387
2023-11-19 11:56:29 -03:00
Bruno Oliveira
70f03dbc3e
Adjustments to assert raises docs ( #11586 )
...
Followup from #11578 .
2023-11-04 12:37:47 -03:00
Bruno Oliveira
1e02797d15
Improve pytest.raises docs ( #11578 )
2023-11-04 10:24:57 +00:00
Ziad Kermadi
ed8701a57f
Mention -q and -s in the docs ( #11558 )
...
Fixes #11507 .
2023-10-27 14:35:45 -03:00
Carsten Grohmann
38f7c1e346
Use pytestconfig instead of request.config in cache example ( #11542 )
...
to be consistent with the API documentation.
2023-10-23 15:45:16 -03:00
ryanpudd
3ab70cd561
Use hyphenated cmdline options in docs ( #11490 )
...
Fix #11091
2023-10-10 21:16:24 +00:00
Mihail Milushev
5ace48ca5b
Fix a minor mistake in docs ("``match`` method" is actually talking about the `match` keyword parameter)
2023-09-17 22:28:32 +01:00
Mihail Milushev
e7caaa0b3e
Document the new `ExceptionInfo.group_contains()` method
2023-09-17 22:28:32 +01:00
Bruno Oliveira
f08782d8d0
Merge pull request #11377 from pytest-dev/release-7.4.1
...
Prepare release 7.4.1
(cherry picked from commit 82eb86f707cac79f33d0ff69723ccf1cea7e75f7)
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
Christoph Anton Mitterer
cc0adf6bf3
doc: update information about assertion messages ( #11285 )
...
It was pointed out[0] that the previous behaviour has been obsoleted by
commit 37bd1e03cb
.
[0] https://github.com/pytest-dev/pytest/issues/11265#issuecomment-1666581197
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
2023-08-05 19:30:41 +00:00
Uday Kumar
d3552ef4c0
Clarify doc for running tests by nodeid section ( #11249 )
2023-07-28 07:06:38 +00:00
Ran Benita
161ba87300
doc/usage: clarify "Run tests by node ids"
...
Fix #11107 , #11235 .
2023-07-24 00:00:25 +03:00
Ran Benita
b41acaea12
Switch to new-style pluggy hook wrappers
...
Fix #11122 .
2023-07-14 22:47:48 +03:00
Ran Benita
f1c9570a0e
A few more Python>=3.8 simplifications
2023-07-10 23:20:11 +03:00
antosikv
99ab8ae884
Clarify docs for pytest.main default behavior ( #11187 )
...
Add explicit mentions of the default behavior to both API reference and
how-to section about ways to invoke pytest.
Co-authored-by: Ran Benita <ran@unusedvar.com>
2023-07-09 12:30:33 -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
Zac Hatfield-Dodds
b81003f6fb
Incorporate legend into main table
2023-07-06 00:04:15 -07:00
mickeypash
ddd773ecb1
[docs] add table nose x pytest naming comparison
2023-07-05 23:46:32 -07:00
Ran Benita
81cfb3fc87
Merge pull request #11017 from erik-hasse/caplog-root-logger-docs
...
add a warning about modifying the root logger during tests
2023-06-28 09:28:46 +03:00
Thomas Grainger
45f1a462d5
Apply suggestions from code review
...
Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>
2023-06-25 16:08:53 +01:00
Thomas Grainger
4cd95eeabf
Merge branch 'main' into warn-when-a-mark-is-applied-to-a-fixture
2023-06-25 16:08:11 +01:00
Erik Hasse
a2feb6bd00
add a warning about modifying the root logger during tests
2023-05-18 09:26:16 -05:00
leeyueh
f84fea0888
Update usage.rst ( #10974 )
...
Added a note for single quotation used in Windows.
2023-05-10 22:28:52 -03:00
Ronny Pfannschmidt
ba969d2ae7
run regendoc
2023-03-17 21:58:26 +01:00
Garvit Shubham
aa72496d24
Fix entry-points declaration in the documentation example using Hatch
...
Closes #10721
2023-02-14 10:57:32 -03:00
pre-commit-ci[bot]
59e7d2bbc9
[pre-commit.ci] pre-commit autoupdate ( #10712 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.12.0 → 23.1.0](https://github.com/psf/black/compare/22.12.0...23.1.0 )
- [github.com/PyCQA/autoflake: v2.0.0 → v2.0.1](https://github.com/PyCQA/autoflake/compare/v2.0.0...v2.0.1 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update .pre-commit-config.yaml
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2023-02-07 19:30:33 -03:00
Mahesh Vashishtha
af99040123
Add a note about -W vs filterwarnings. ( #10713 )
...
Closes #10687
Signed-off-by: mvashishtha <mahesh@ponder.io>
2023-02-07 19:27:34 -03:00
vin01
86a1beba07
Clarify docs for `match` regarding escaping ( #10695 )
...
Add example using `re.escape` to escape arbitrary literal strings which might contain regular expression characters like `.` or `)`.
Closes #10595
2023-01-27 08:11:00 -03:00
Yusuke Kadowaki
10220d3f31
Change the default policy to all
2022-12-25 00:18:38 +09:00
Yusuke Kadowaki
62e75c7d55
Documentation update for tmp_path configurations
2022-12-01 22:29:46 +09: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
Thomas Grainger
2fd160110c
Merge branch 'main' into warn-when-a-mark-is-applied-to-a-fixture
2022-10-10 13:55:24 +01: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
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
Bruno Oliveira
0c21d60349
Improve documentation for setup() and teardown() nose support
...
Fix #9549
2022-10-07 11:10:28 -03:00
skhomuti
c326bd5669
Add allure-pytest to the popular plugins list
2022-09-08 22:12:44 +05: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