Ran Benita
7460b1aa31
Cherry pick 8.0.2 release notes
...
(cherry picked from commit e53f79893212391c0bada5f1628b977371a09434)
2024-02-25 00:25:49 +02:00
Patrick Lannigan
84bd31de64
New verbosity_test_case ini option ( #11653 )
...
Allow for the output of test case execution to be controlled independently from the application verbosity level.
`verbosity_test_case` is the new ini setting to adjust this functionality.
Fix #11639
2024-02-24 16:27:54 -03:00
Ben Leith
c5c729e27a
Add --log-file-mode option to the logging plugin, enabling appending to log-files ( #11979 )
...
Previously, the mode was hard-coded to be "w" which truncates the file before logging.
Co-authored-by: Bruno Oliveira <bruno@soliv.dev>
2024-02-21 12:02:19 +00:00
Pierre Sassoulas
4546d5445a
Upgrade blacken-doc to black's 2024 style ( #11899 )
2024-01-31 13:53:21 +01:00
John Litborn
e885013c6b
fix incorrect example for group_contains ( #11892 )
2024-01-30 12:00:38 -08:00
Ran Benita
c6da0d20d2
Merge pull request #11864 from bluetech/release-8.0.0
...
Prepare release version 8.0.0
(cherry picked from commit 24c681d4eeaad22ba26c5bcf6958e0476ae37a89)
2024-01-28 00:00:15 +02:00
Ran Benita
111ad26f71
doc/writing_plugins: correct inaccuracies re. initial conftest loading
2024-01-18 22:17:55 +02:00
faph
eefc9d47fc
[DOCS] Clarify tmp_path directory location and retention ( #11830 )
...
Fixes #11789 and #11790
2024-01-18 07:21:49 -03: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 97960bdd148972b2f26bd9b336163e590bbc4c6b)
2024-01-17 23:45:21 +02:00
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