Ran Benita
e6eac28f0e
legacypath: only add `testdir` and `tmpdir` fixtures if corresponding plugins are registered
...
This preserves the existing behavior and gives a proper error message
in case e.g. `testdir` is requested without the `pytester` plugin being
loaded.
2021-10-29 13:11:12 +03:00
Ran Benita
c3dff755af
Move Node.fspath to legacypath plugin
2021-10-28 21:51:51 +03:00
Ran Benita
ce7cff9f8e
Move pathlist support to legacypath plugin
2021-10-28 21:51:51 +03:00
Ran Benita
d9ca55c648
Move Session.startdir to legacypath plugin
2021-10-28 21:51:51 +03:00
Ran Benita
84722a7904
Move Config.{invocation_dir,rootdir,inifile} to legacypath plugin
2021-10-28 21:51:51 +03:00
Ran Benita
d979f82fb0
Move TerminalReporter.stardir to legacypath plugin
2021-10-28 21:51:51 +03:00
Ran Benita
7c0011374c
Move FixtureRequest.fspath to legacypath plugin
2021-10-28 21:51:51 +03:00
Ran Benita
a1a605a63e
Move Cache.makedir to legacypath plugin
2021-10-28 21:51:51 +03:00
Ran Benita
5e883f5195
Move tmpdir to legacypath plugin
2021-10-28 21:51:51 +03:00
Ran Benita
1df28a4450
Move testdir to legacypath plugin
2021-10-28 21:51:51 +03:00
Ran Benita
c2ece58aa0
Add legacypath plugin
2021-10-27 09:31:44 +03:00
Ran Benita
b7fc0003fd
Merge pull request #9232 from bluetech/deprecate-node-fspath-args
...
Deprecate Node constuctor fspath argument, and other small changes/fixes
2021-10-27 09:26:57 +03:00
Ran Benita
7706fd6840
nodes: deprecate fspath arguments to node constructors
...
This is unfortunately a dependency on `py.path` which cannot be moved to
an external plugins or eased in any way, so has to be deprecated in
order for pytest to be able to eventually remove the dependency on `py`.
2021-10-27 08:36:10 +03:00
Ran Benita
99363ad7ff
recwarn: fix was -> were in DID NOT WARN message
2021-10-27 08:36:10 +03:00
Ran Benita
3c5c5feb04
Merge pull request #9230 from bluetech/pytester-transitive-public
...
Export pytester transitive types
2021-10-27 08:05:08 +03:00
Alexander King
14e032088c
Change the command for package building in release CI workflow ( #9229 )
2021-10-25 21:32:12 +03:00
Ran Benita
89f8ff5a6d
Merge pull request #9233 from pytest-dev/update-plugin-list/patch-f695e18dd
...
[automated] Update plugin list
2021-10-25 21:05:55 +03:00
pytest bot
2f0e1cd230
[automated] Update plugin list
2021-10-24 00:11:06 +00:00
Ran Benita
60ca83746b
docs: change references to 6.3 -> 7.0
...
The plans have changed, next version will be 7.0 not 6.3.
2021-10-23 22:49:55 +03:00
Ran Benita
755ce9bc80
hookspec: improve legacy path deprecation docs
2021-10-23 22:49:54 +03:00
Ran Benita
afc7442e22
nodes: inline `_imply_path`
...
Only one usage left, and we certainly don't expect more!
Rename `_imply_path_only` to `_imply_path`, that's a less confusing name
now.
2021-10-23 22:10:08 +03:00
Ran Benita
6be3f31dba
nodes: remove redundent _imply_path call
...
The Node ctor will take care of the check.
2021-10-23 21:34:16 +03:00
Ran Benita
853b0a4c29
nodes: fix bug in Node() fspath compat
...
Since path <-> fspath are converted to each other, we need to check both
before looking at the parent, in case fspath is set but path is not.
2021-10-23 21:33:12 +03:00
Ran Benita
11e36c8493
Make transitive Pytester types public
...
Export `HookRecorder`, `RecordedHookCall` (originally `ParsedCall`),
`RunResult`, `LineMatcher`.
These types are reachable through `Pytester` and so should be public
themselves for typing and other purposes.
The name `ParsedCall` I think is too generic under the `pytest`
namespace, so rename it to `RecordedHookCall`.
The `HookRecorder`'s constructor is made private -- it should only be
constructed by `Pytester`.
`LineMatcher` and `RunResult` are exported as is - no private and no
rename, since they're being used.
All of the classes are made final as they are not designed for
subclassing.
2021-10-23 10:59:18 +03:00
Ran Benita
259cff59f5
Remove {pytester,testdir}.Session aliases
...
This causes `Session` documentation to be rendered again in full under
`pytester` and `testdir` in the API Reference. I tried but couldn't get
sphinx to hide it.
Since it's a pretty odd thing to have (should just use
`pytest.Session`), and I couldn't find any plugin which uses this, let's
just remove it.
2021-10-23 10:25:29 +03:00
Ran Benita
f695e18ddb
Merge pull request #9227 from bluetech/config-_cleanup
...
Use public API for adding config cleanup
2021-10-22 22:50:55 +03:00
Alexander King
005690bd67
Add template for prereleases ( #9165 )
...
Fix #8820
2021-10-22 10:00:00 -03:00
Oleg Höfling
1e9e16d829
Replace hardcoded links to PyPI with extlinks ( #9224 )
2021-10-22 09:47:57 -03:00
Ran Benita
5fd182f3de
Use public API for adding config cleanup
...
No need to spuriously access the private internals of Config.
2021-10-22 11:03:27 +03:00
Ran Benita
2af41c5703
Merge pull request #9226 from bluetech/doc-setup-py
...
doc: modernize discussion of setup.py in "Good Integration Practices"
2021-10-22 11:01:10 +03:00
Ran Benita
7314b32b63
doc: modernize discussion of setup.py in "Good Integration Practices"
2021-10-22 10:24:39 +03:00
Bruno Oliveira
61e506a63f
Merge pull request #9223 from nicoddemus/better-filter-warnings-messages
2021-10-21 22:45:00 -03:00
Bruno Oliveira
f5fd2fb176
Improve UX during errors while parsing warning filters
...
Fix #7864
Fix #9218
Closes #8343
Closes #7877
2021-10-21 13:15:41 -03:00
Bruno Oliveira
4a3834101e
Merge pull request #9209 from pytest-dev/update-plugin-list/patch-0696d3eda
...
[automated] Update plugin list
2021-10-19 06:53:25 -03:00
Bruno Oliveira
20a69e11aa
Merge pull request #9214 from nicoddemus/confcutdir-9210
2021-10-19 06:52:52 -03:00
Bruno Oliveira
c000955dde
Remove incorrect docs about confcutdir being a config option
...
Fix #9210
2021-10-18 19:20:27 -03:00
dependabot[bot]
080fc81971
build(deps): Bump pytest-asyncio from 0.15.1 to 0.16.0 in /testing/plugins_integration ( #9212 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-18 19:16:55 -03:00
dependabot[bot]
73fb797bbd
build(deps): Bump anyio[curio,trio] from 3.3.3 to 3.3.4 in /testing/plugins_integration ( #9211 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-18 19:16:16 -03:00
Cristian Vera
cbcfeca78c
Cache.set preserves key order when saving dicts ( #9206 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2021-10-18 19:15:34 -03:00
pytest bot
3cc0c451e7
[automated] Update plugin list
2021-10-17 00:11:56 +00:00
Ran Benita
0696d3eda1
Merge pull request #9207 from bluetech/rm-py-pre
...
Remove some `py` uses
2021-10-16 22:26:45 +03:00
Ran Benita
a3b69d9d83
Remove py version printing, traceback filtering, freezing
...
Not so important anymore, and makes it easier to remove the py
dependency.
2021-10-16 12:01:31 +03:00
Ran Benita
bc2f20722c
testing: remove a few redundant py references
2021-10-16 11:58:35 +03:00
Bruno Oliveira
5fc7b21391
Use xelatex engine for better Unicode support ( #9197 )
2021-10-12 10:12:15 -03:00
pre-commit-ci[bot]
d7752b4d1e
[pre-commit.ci] pre-commit autoupdate ( #9191 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-10-11 20:09:25 +00:00
dependabot[bot]
110d70ec88
build(deps): bump django from 3.2.7 to 3.2.8 in /testing/plugins_integration ( #9190 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2021-10-11 12:44:28 +00:00
James Myatt
ccd3874d7a
Recommend not integrating with setuptools ( #9185 )
2021-10-11 15:28:27 +03:00
dependabot[bot]
d0cc45d723
build(deps): bump anyio[curio,trio] from 3.3.2 to 3.3.3 in /testing/plugins_integration ( #9189 )
...
Bumps [anyio[curio,trio]](https://github.com/agronholm/anyio ) from 3.3.2 to 3.3.3.
- [Release notes](https://github.com/agronholm/anyio/releases )
- [Changelog](https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst )
- [Commits](https://github.com/agronholm/anyio/compare/3.3.2...3.3.3 )
---
updated-dependencies:
- dependency-name: anyio[curio,trio]
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-11 09:25:51 -03:00
Ran Benita
da3b3012b1
Merge pull request #9184 from bluetech/reportinfo-pathlike
...
[7.0] Change `Node.reportinfo()` return value from `py.path` to `str|os.PathLike[str]`
2021-10-11 14:33:03 +03:00
github-actions[bot]
4b417ac38e
[automated] Update plugin list ( #9186 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2021-10-10 12:00:43 -03:00