Bruno Oliveira
3c1534944c
Merge pull request #10318 from pytest-dev/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-10-07 20:04:48 -03:00
Ran Benita
a501518a26
Revert "ci: fix PR not triggering workflows by switching back to pytestbot access token"
2022-10-08 00:58:51 +03:00
Ran Benita
680f3e2097
Merge pull request #10327 from AA-Turner/devnul
...
Use an explicit encoding when opening `os.devnul`
2022-10-08 00:52:11 +03:00
Ran Benita
ed5d4e1269
Merge pull request #10346 from bluetech/ci-pat
...
ci: fix PR not triggering workflows by switching back to pytestbot access token
2022-10-08 00:30:34 +03:00
Tony Narlock
8e7ce60c7d
Export `pytest.DoctestItem` for typing / runtime purposes ( #10313 )
...
Fixes #10312
2022-10-07 13:03:42 -03: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
Bruno Oliveira
4da0689653
Ignore mypy error about missing generic arg for catch_warnings
...
mypy stubs recently changed warnings.catch_warnings to a Generic, in
order to have proper overloads depending on the parameters passed to it, whihc
triggers this mypy error now when we subclass it:
src/_pytest/recwarn.py:170: error: Missing type parameters for generic type "catch_warnings" [type-arg]
For our porpuses the parameter is not relevant (we always use record=True), so
decided to just ignore the type error.
2022-10-07 11:30:24 -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
Bruno Oliveira
4545fcff05
Merge pull request #10335 from pytest-dev/dependabot/pip/testing/plugins_integration/pytest-mock-3.9.0
2022-10-07 11:00:10 -03:00
Ronny Pfannschmidt
24ef7c98e8
Merge pull request #10343 from RonnyPfannschmidt/fix-10342-warn-explicit-add-location
...
fix #10342 : put location into warning exceptions
2022-10-07 13:04:32 +02:00
Bruno Oliveira
c4981f5a1b
Merge pull request #10347 from The-Compiler/hookimpl-marker-docs
2022-10-07 07:51:16 -03:00
Ronny Pfannschmidt
7a15bad89b
Update src/_pytest/warning_types.py
...
Co-authored-by: Florian Bruhin <me@the-compiler.org>
2022-10-07 12:46:40 +02:00
Florian Bruhin
72cac9b1af
Mark tryfirst/trylast as deprecated in their docs.
...
Follow-up to #9118
2022-10-07 12:16:53 +02:00
Ran Benita
2df0d9656c
ci: fix PR not triggering workflows by switching back to pytestbot access token
...
The builtin actions token is not allowed to trigger further workflows.
So when we create a PR using that token, the PR checks don't run, and a
maintainer must close & open the PR to make them run. This is quite
annoying, so switch back to the "machine user" approach.
Fixes #9554 .
2022-10-06 21:14:24 +03:00
Bruno Oliveira
4677580cae
Merge pull request #10339 from Moisan/doc_broken_links
2022-10-06 13:05:11 -03:00
Ronny Pfannschmidt
14919c4bbb
fix #10342 : put location into warning exceptions
...
as the warning systems own warn_explicit looses the information
we add them explicitly to the warning exceptions
2022-10-06 11:44:05 +02:00
Thierry Moisan
06007de7ba
Fix a few broken links in the documentation
2022-10-05 10:24:55 -04:00
pre-commit-ci[bot]
4ee6e900a0
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/PyCQA/autoflake: v1.6.0 → v1.6.1](https://github.com/PyCQA/autoflake/compare/v1.6.0...v1.6.1 )
- [github.com/asottile/reorder_python_imports: v3.8.2 → v3.8.3](https://github.com/asottile/reorder_python_imports/compare/v3.8.2...v3.8.3 )
- [github.com/asottile/pyupgrade: v2.38.0 → v2.38.2](https://github.com/asottile/pyupgrade/compare/v2.38.0...v2.38.2 )
- [github.com/pre-commit/mirrors-mypy: v0.971 → v0.981](https://github.com/pre-commit/mirrors-mypy/compare/v0.971...v0.981 )
2022-10-03 23:32:26 +00:00
dependabot[bot]
eab875509d
build(deps): Bump pytest-mock in /testing/plugins_integration
...
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock ) from 3.8.2 to 3.9.0.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases )
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.8.2...v3.9.0 )
---
updated-dependencies:
- dependency-name: pytest-mock
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-03 03:01:46 +00:00
Ronny Pfannschmidt
2be1b8f355
Merge pull request #9118 from RonnyPfannschmidt/fix-4562-deprecate-hookmarkers
...
deprecate hook configuration via marks/attributes
2022-10-02 12:59:16 +02:00
Adam Turner
594413e8f0
Use an explicit encoding when opening `os.devnul`
...
Although slightly pointless, this avoids an `EncodingWarning` in Python 3.10
or greater when running under the `-X warn_default_encoding` flag.
2022-09-30 23:43:27 +01:00
Ronny Pfannschmidt
ce3e2e922b
bump plugin test pytest cov pin
2022-09-28 22:28:03 +02:00
Bruno Oliveira
59b8ec3ce1
Merge pull request #10308 from pytest-dev/pre-commit-ci-update-config
2022-09-21 16:03:59 -03:00
Ronny Pfannschmidt
ae9dbf5006
add docstring to warn_explicit_for
2022-09-20 16:24:32 +02:00
Ronny Pfannschmidt
7e8a4849d8
unify option extraction for legacy hook marks
2022-09-20 16:24:32 +02:00
Ronny Pfannschmidt
e3294398d6
simplify typing for legacy hook mark support
2022-09-20 16:24:23 +02:00
Ronny Pfannschmidt
b1fb9a9c8d
handle non-true options in hookspec warning
2022-09-20 16:22:26 +02:00
Ronny Pfannschmidt
8c52dc5b7e
remove the setup.py for the py.test project which for deprecation has been deployed since 2014
2022-09-20 16:22:26 +02:00
Ronny Pfannschmidt
0fdacb6db5
deprecate hook configuration via marks/attributes
...
fixes #4562
2022-09-20 16:22:26 +02:00
pre-commit-ci[bot]
256ab097a2
[pre-commit.ci] pre-commit autoupdate
...
updates:
- https://github.com/myint/autoflake → https://github.com/PyCQA/autoflake
- [github.com/PyCQA/autoflake: v1.5.3 → v1.6.0](https://github.com/PyCQA/autoflake/compare/v1.5.3...v1.6.0 )
- [github.com/asottile/pyupgrade: v2.37.3 → v2.38.0](https://github.com/asottile/pyupgrade/compare/v2.37.3...v2.38.0 )
2022-09-19 23:24:54 +00:00
Anthony Sottile
5bd41befa8
Merge pull request #10301 from Zoorken/main
...
doc: Fix 404 'identify flaky test' link (#10244 )
2022-09-16 10:51:08 -04: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
Bruno Oliveira
33a083e844
Merge pull request #10291 from pytest-dev/dependabot/pip/testing/plugins_integration/twisted-22.8.0
2022-09-12 09:11:58 -03:00
Bruno Oliveira
77d2c9631a
Merge pull request #10289 from pytest-dev/update-plugin-list/patch-85da6cad1
...
[automated] Update plugin list
2022-09-12 09:08:40 -03:00
dependabot[bot]
d416fbab91
build(deps): Bump twisted in /testing/plugins_integration
...
Bumps [twisted](https://github.com/twisted/twisted ) from 22.4.0 to 22.8.0.
- [Release notes](https://github.com/twisted/twisted/releases )
- [Changelog](https://github.com/twisted/twisted/blob/trunk/NEWS.rst )
- [Commits](https://github.com/twisted/twisted/compare/twisted-22.4.0...twisted-22.8.0 )
---
updated-dependencies:
- dependency-name: twisted
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-12 03:01:53 +00:00
pytest bot
f53b49c8c4
[automated] Update plugin list
2022-09-11 00:22:18 +00:00
Bruno Oliveira
85da6cad11
Merge pull request #10285 from skhomuti/allure-pytest-to-plugins
...
Add allure-pytest to the popular plugins list
2022-09-09 09:00:32 -03:00
skhomuti
c326bd5669
Add allure-pytest to the popular plugins list
2022-09-08 22:12:44 +05:00
Bruno Oliveira
a734dab00d
Merge pull request #10279 from The-Compiler/training-update-3
2022-09-07 10:15:02 -03:00
Florian Bruhin
1e0aa16908
Update open trainings
2022-09-07 14:48:49 +02:00
Bruno Oliveira
b34eb0860c
Merge pull request #10275 from pytest-dev/pre-commit-ci-update-config
2022-09-06 08:33:51 -03:00
Bruno Oliveira
77e34526e8
Merge pull request #10225 from nicoddemus/sort-fixtures-docs
2022-09-06 08:33:27 -03:00
Bruno Oliveira
abf4941f3e
Merge pull request #10272 from pytest-dev/dependabot/pip/testing/plugins_integration/django-4.1.1
...
build(deps): Bump django from 4.1 to 4.1.1 in /testing/plugins_integration
2022-09-06 08:33:04 -03:00
pre-commit-ci[bot]
b4ae5e4a35
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 22.6.0 → 22.8.0](https://github.com/psf/black/compare/22.6.0...22.8.0 )
- [github.com/myint/autoflake: v1.5.1 → v1.5.3](https://github.com/myint/autoflake/compare/v1.5.1...v1.5.3 )
2022-09-05 23:33:43 +00:00
dependabot[bot]
649b2e7f30
build(deps): Bump django in /testing/plugins_integration
...
Bumps [django](https://github.com/django/django ) from 4.1 to 4.1.1.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/commits )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-05 13:09:31 +00:00
Bruno Oliveira
6ad32a9c5c
Merge pull request #10268 from pytest-dev/update-plugin-list/patch-4ed2b3a73
...
[automated] Update plugin list
2022-09-04 12:59:41 -03:00
pytest bot
50f390f015
[automated] Update plugin list
2022-09-04 00:23:26 +00:00