test_ok1/testing
Ran Benita f1e6fdcddb Export types of builtin fixture for type annotations
In order to allow users to type annotate fixtures they request, the
types need to be imported from the `pytest` namespace. They are/were
always available to import from the `_pytest` namespace, but that is
not guaranteed to be stable.

These types are only exported for the purpose of typing. Specifically,
the following are *not* public:

- Construction (`__init__`)
- Subclassing
- staticmethods and classmethods

We try to combat them being used anyway by:

- Marking the classes as `@final` when possible (already done).

- Not documenting private stuff in the API Reference.

- Using `_`-prefixed names or marking as `:meta private:` for private
  stuff.

- Adding a keyword-only `_ispytest=False` to private constructors,
  warning if False, and changing pytest itself to pass True. In the
  future it will (hopefully) become a hard error.

Hopefully that will be enough.
2020-11-13 11:25:09 +02:00
..
code code: simplify Code construction 2020-10-31 12:40:25 +02:00
example_scripts py36+: com2ann 2020-10-05 18:33:17 -07:00
examples pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
freeze testing: fix some docstring issues 2020-08-03 10:10:43 +03:00
io Merge pull request #7481 from bluetech/tw-unicode-escape 2020-07-11 16:01:45 -03:00
logging Improve summary stats when using '--collect-only' (#7875) 2020-11-08 11:45:10 -03:00
plugins_integration build(deps): bump django in /testing/plugins_integration 2020-11-09 03:17:35 +00:00
python Export types of builtin fixture for type annotations 2020-11-13 11:25:09 +02:00
acceptance_test.py New pytester fixture (#7854) 2020-10-12 12:13:06 -03:00
conftest.py testing: make conftest stuff check for pytester not testdir 2020-10-26 15:01:38 +02:00
deprecated_test.py Export types of builtin fixture for type annotations 2020-11-13 11:25:09 +02:00
test_argcomplete.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
test_assertion.py Add support to display field names in namedtuple diffs. 2020-10-31 14:41:53 +02:00
test_assertrewrite.py code: simplify Code construction 2020-10-31 12:40:25 +02:00
test_cacheprovider.py Export types of builtin fixture for type annotations 2020-11-13 11:25:09 +02:00
test_capture.py Update mypy 0.782 -> 0.790 2020-10-17 19:25:45 +03:00
test_collection.py test_collection.py migrate from testdir to Pytester (#8003) 2020-11-07 16:56:00 +02:00
test_compat.py Migrate test_compat.py from testdir to pytester (#7963) 2020-10-29 09:56:34 +02:00
test_config.py Update tests to cover explicit None and "string" as addini() types 2020-10-07 17:56:54 -04:00
test_conftest.py py36+: remove rexport of Path and PurePath 2020-10-03 12:16:52 -07:00
test_debugging.py testing: use pytester.spawn instead of testdir 2020-10-25 10:11:10 +02:00
test_doctest.py Update mypy 0.782 -> 0.790 2020-10-17 19:25:45 +03:00
test_entry_points.py Replace importlib_metadata with importlib.metadata on Python 3.8+ 2019-07-04 15:00:10 +02:00
test_error_diffs.py Migrate test_error_diffs.py from testdir to pytester (#7971) 2020-10-30 22:12:40 +02:00
test_faulthandler.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
test_findpaths.py py36+: remove rexport of Path and PurePath 2020-10-03 12:16:52 -07:00
test_helpconfig.py #7942 test_helpconfig.py migrate from testdir to pytester 2020-10-26 18:30:48 +03:00
test_junitxml.py py36+: com2ann 2020-10-05 18:33:17 -07:00
test_link_resolve.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
test_main.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
test_mark.py Address feedback for converting testdir to pytester 2020-10-27 17:50:54 +00:00
test_mark_expression.py mark/expression: prevent creation of illegal Python identifiers 2020-06-05 15:57:48 +03:00
test_meta.py py36+: com2ann 2020-10-05 18:33:17 -07:00
test_monkeypatch.py Export MonkeyPatch as pytest.MonkeyPatch 2020-11-09 11:28:15 +02:00
test_nodes.py migrated test_nodes.py from testdir to pytester #7492. (#7969) 2020-10-30 22:34:05 +02:00
test_nose.py Node.location: handle str with _node_location_to_relpath 2020-01-23 10:45:31 +01:00
test_parseopt.py testing: improve bash check 2020-07-21 21:21:09 +03:00
test_pastebin.py Update mypy 0.782 -> 0.790 2020-10-17 19:25:45 +03:00
test_pathlib.py Fix handling recursive symlinks 2020-10-31 17:40:56 +01:00
test_pluginmanager.py py36+: com2ann 2020-10-05 18:33:17 -07:00
test_pytester.py testing: use pytester.spawn instead of testdir 2020-10-25 10:11:10 +02:00
test_recwarn.py Export types of builtin fixture for type annotations 2020-11-13 11:25:09 +02:00
test_reports.py Drop support for EOL Python 3.5 2020-10-19 10:02:36 +03:00
test_runner.py testing: python 3.10 fix 2020-10-25 01:27:44 +02:00
test_runner_xunit.py pytest-dev#7942 test_runner_xunit.py (#7964) 2020-10-31 12:38:11 +02:00
test_session.py #7942 test_session.py migrate from testdir to pytester 2020-11-04 21:55:07 +05:30
test_setuponly.py Migrate test_setuponly.py from testdir to pytester (#7959) 2020-10-29 09:55:30 +02:00
test_setupplan.py #7942 test_setupplan.py migrate from testdir to Pytester (#8004) 2020-11-07 09:29:45 -03:00
test_skipping.py Migrate test_skipping.py from testdir to pytester (#7953) 2020-10-28 17:05:54 +02:00
test_stepwise.py #7942 refactor stepwise tests to utilize pytester 2020-10-30 19:21:42 +00:00
test_store.py Remove no longer needed `noqa: F821` uses 2020-07-10 13:08:56 +03:00
test_terminal.py Improve summary stats when using '--collect-only' (#7875) 2020-11-08 11:45:10 -03:00
test_tmpdir.py Export types of builtin fixture for type annotations 2020-11-13 11:25:09 +02:00
test_unittest.py fixtures: deprecate pytest.yield_fixture() 2020-11-07 17:06:40 +02:00
test_warning_types.py add type hint to parametrized warning_class 2020-10-25 18:31:43 +00:00
test_warnings.py py36+: com2ann 2020-10-05 18:33:17 -07:00
typing_checks.py Fix typing of params ids callable form 2020-07-14 14:53:42 +03:00