pytest2/src/_pytest
Ran Benita 6f13d1b03b Export MonkeyPatch as pytest.MonkeyPatch
We want to export `pytest.MonkeyPatch` for the purpose of
type-annotating the `monkeypatch` fixture. For other fixtures we export
in this way, we also make direct construction of them (e.g.
`MonkeyPatch()`) private. But unlike the others, `MonkeyPatch` is also
widely used directly already, mostly because the `monkeypatch` fixture
only works in `function` scope (issue #363), but also in other cases. So
making it private will be annoying and we don't offer a decent
replacement yet.

So, let's just make direct construction public & documented.
2020-11-09 11:28:15 +02:00
..
_code code: simplify Code construction 2020-10-31 12:40:25 +02:00
_io py36+: com2ann 2020-10-05 18:33:17 -07:00
assertion Add support to display field names in namedtuple diffs. 2020-10-31 14:41:53 +02:00
config Deprecate --strict (#7985) 2020-11-06 09:48:20 +01:00
mark Deprecate --strict (#7985) 2020-11-06 09:48:20 +01:00
__init__.py pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
_argcomplete.py py36+: com2ann 2020-10-05 18:33:17 -07:00
cacheprovider.py cacheprovider: fix some files in packages getting lost from --lf 2020-10-19 19:02:43 +03:00
capture.py Drop support for EOL Python 3.5 2020-10-19 10:02:36 +03:00
compat.py Update mypy 0.782 -> 0.790 2020-10-17 19:25:45 +03:00
debugging.py py36+: com2ann 2020-10-05 18:33:17 -07:00
deprecated.py Deprecate --strict (#7985) 2020-11-06 09:48:20 +01:00
doctest.py py36+: com2ann 2020-10-05 18:33:17 -07:00
faulthandler.py Integrate warnings filtering directly into Config (#7700) 2020-09-04 11:57:15 -03:00
fixtures.py fixtures: fix quadratic behavior in the number of autouse fixtures 2020-10-25 00:49:23 +03:00
freeze_support.py Format docstrings in a consistent style 2020-08-01 17:14:37 +03:00
helpconfig.py py36+: com2ann 2020-10-05 18:33:17 -07:00
hookspec.py make some hookspec docstrings technically correct 2020-10-24 10:59:25 +01:00
junitxml.py py36+: com2ann 2020-10-05 18:33:17 -07:00
logging.py py36+: com2ann 2020-10-05 18:33:17 -07:00
main.py Deprecate --strict (#7985) 2020-11-06 09:48:20 +01:00
monkeypatch.py Export MonkeyPatch as pytest.MonkeyPatch 2020-11-09 11:28:15 +02:00
nodes.py fixtures: use a faster replacement for ischildnode 2020-10-25 00:48:35 +03:00
nose.py Format docstrings in a consistent style 2020-08-01 17:14:37 +03:00
outcomes.py py36+: com2ann 2020-10-05 18:33:17 -07:00
pastebin.py py36+: com2ann 2020-10-05 18:33:17 -07:00
pathlib.py Merge pull request #7956 from csernazs/fix-7951 2020-10-31 18:59:50 +02:00
py.typed Publish our types 2020-07-04 13:18:15 +03:00
pytester.py test_collection.py migrate from testdir to Pytester (#8003) 2020-11-07 16:56:00 +02:00
python.py Merge pull request #7980 from bluetech/code-changes 2020-11-01 09:51:39 +02:00
python_api.py Drop support for EOL Python 3.5 2020-10-19 10:02:36 +03:00
recwarn.py py36+: com2ann 2020-10-05 18:33:17 -07:00
reports.py py36+: com2ann 2020-10-05 18:33:17 -07:00
runner.py runner: combine a sort+reverse to a sort(reverse=True) 2020-10-19 00:02:01 +03:00
setuponly.py typing: set disallow_any_generics 2020-08-01 20:39:15 +03:00
setupplan.py typing: set disallow_any_generics 2020-08-01 20:39:15 +03:00
skipping.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
stepwise.py #7938 - [Plugin: Stepwise][Enhancements] Refactoring, smarter registration & --sw-skip functionality (#7939) 2020-10-30 19:13:06 +00:00
store.py py36+: com2ann 2020-10-05 18:33:17 -07:00
terminal.py Fixed formatting 2020-10-07 22:25:27 -07:00
timing.py Format docstrings in a consistent style 2020-08-01 17:14:37 +03:00
tmpdir.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
unittest.py unittest: fix quadratic behavior in collection of unittests using setUpClass/setup_method 2020-11-01 15:17:42 +02:00
warning_types.py New pytester fixture (#7854) 2020-10-12 12:13:06 -03:00
warnings.py py36+: remove TYPE_CHECKING from _pytest.compat 2020-10-02 15:03:24 -07:00