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