pytest2/testing
Ran Benita d636fcd557 Add a typing-compatible mechanism for ad-hoc attributes on various objects
pytest has several instances where plugins set their own attributes on
objects they receive in hooks, like nodes and config. Since plugins are
detached from these object's definition by design, this causes a problem
for type checking because these attributes are not defined and mypy
complains.

Fix this by giving these objects a "store" which can be used by plugins
in a type-safe manner.

Currently this mechanism is private. We can consider exposing it at a
later point.
2020-02-28 14:34:44 +02:00
..
code Improve doc/typing/message for `ExceptionInfo.match` (#6776) 2020-02-21 16:41:57 +01:00
example_scripts Validate xunit2 files against the schema 2019-08-09 10:55:06 -03:00
examples pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
freeze Replace a few outdated references to py.test with pytest 2019-10-26 16:28:17 +03:00
io _pformat_dispatch: pass through args (#6715) 2020-02-12 16:07:57 +01:00
logging tests: test_collection_collect_only_live_logging: allow for 1s 2020-01-25 18:14:49 +01:00
python Handle `match` with `pytest.raises()` (#6753) 2020-02-22 23:32:55 +01:00
acceptance_test.py main: `args` must be a list, not tuple (#6791) 2020-02-22 13:16:46 +01:00
conftest.py Use code highlighting if pygments is installed (#6658) 2020-02-12 08:32:37 -03:00
deprecated_test.py Deprecate --no-print-logs option 2019-12-14 16:46:30 -08:00
test_argcomplete.py pre-commit run pyupgrade --all-files 2019-06-03 12:08:02 -03:00
test_assertion.py test_assertion: harden/improve test_{text_diff,unicode} (#6806) 2020-02-24 15:19:08 +01:00
test_assertrewrite.py Merge pull request #6673 from sscherfke/features 2020-02-12 15:05:38 -03:00
test_cacheprovider.py LFPlugin: use sub-plugins to deselect during collection (#6448) 2020-02-19 21:33:03 +01:00
test_capture.py capture: factor out _get_multicapture (#6788) 2020-02-22 23:39:20 +01:00
test_collection.py Move ExitCode's definition from _pytest.main to _pytest.config 2020-02-10 23:55:06 +02:00
test_compat.py tests: cover safe_getattr 2020-01-15 11:20:00 +01:00
test_config.py tests: test_config: move tests (#6796) 2020-02-23 17:12:55 +01:00
test_conftest.py Move ExitCode's definition from _pytest.main to _pytest.config 2020-02-10 23:55:06 +02:00
test_debugging.py Merge remote-tracking branch 'upstream/master' into mm 2020-01-22 11:03:45 -03:00
test_doctest.py doctest: strip newlines with unexpected exceptions (#6801) 2020-02-24 15:18:08 +01: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 Reverse / fix meaning of "+/-" in error diffs 2020-02-10 21:12:37 +01:00
test_faulthandler.py tests: fix flaky test_timeout (#6773) 2020-02-21 12:52:31 +01:00
test_helpconfig.py Merge remote-tracking branch 'upstream/master' into mm 2020-02-11 19:22:28 -03:00
test_junitxml.py Add a typing-compatible mechanism for ad-hoc attributes on various objects 2020-02-28 14:34:44 +02:00
test_main.py Merge remote-tracking branch 'upstream/master' into mm 2020-02-11 19:22:28 -03:00
test_mark.py Move ExitCode's definition from _pytest.main to _pytest.config 2020-02-10 23:55:06 +02:00
test_meta.py Keep (revisited) comment from https://github.com/pytest-dev/pytest/commit/4d31ea831 2020-02-03 14:04:16 +01:00
test_monkeypatch.py pre-commit run pyupgrade --all-files 2019-06-03 12:08:02 -03:00
test_nodes.py fix #6341 - disallow session/config in Node.from_parent 2020-01-15 13:00:46 +01:00
test_nose.py Node.location: handle str with _node_location_to_relpath 2020-01-23 10:45:31 +01:00
test_parseopt.py Merge remote-tracking branch 'upstream/master' into mm 2020-02-11 19:22:28 -03:00
test_pastebin.py Fix "lexer" being used when uploading to bpaste.net 2019-08-30 15:34:03 -04:00
test_pathlib.py Switch from deprecated imp to importlib 2019-06-24 09:48:38 -07:00
test_pluginmanager.py Move ExitCode's definition from _pytest.main to _pytest.config 2020-02-10 23:55:06 +02:00
test_pytester.py Use a hack to make typing of pytest.fail.Exception & co work 2020-02-18 23:17:27 +02:00
test_recwarn.py Use a hack to make typing of pytest.fail.Exception & co work 2020-02-18 23:17:27 +02:00
test_reports.py Use a dummy RemoteTraceback for test in Python 3.5 Windows 2020-01-16 20:03:16 +01:00
test_resultlog.py Add a typing-compatible mechanism for ad-hoc attributes on various objects 2020-02-28 14:34:44 +02:00
test_runner.py tests: runner: improve/ignore coverage (#6781) 2020-02-21 14:37:56 +01:00
test_runner_xunit.py Fix plurality mismatch for and in pytest terminal summary 2019-10-27 15:16:24 +00:00
test_session.py Move ExitCode's definition from _pytest.main to _pytest.config 2020-02-10 23:55:06 +02:00
test_setuponly.py Move ExitCode's definition from _pytest.main to _pytest.config 2020-02-10 23:55:06 +02:00
test_setupplan.py Merge remote-tracking branch 'upstream/master' into release-5.3.0 2019-11-19 12:42:11 -03:00
test_skipping.py re-run black 2019-11-16 18:55:32 +01:00
test_stepwise.py tests: test_xfail_handling: use sys.dont_write_bytecode 2020-01-11 23:05:12 +01:00
test_store.py Add a typing-compatible mechanism for ad-hoc attributes on various objects 2020-02-28 14:34:44 +02:00
test_terminal.py tests: harden/improve test_itemreport_subclasses_show_subclassed_file (#6467) 2020-02-21 15:24:12 +01:00
test_tmpdir.py fix #5686, mktemp now fails given absolute and non-normalized paths. 2019-12-12 13:00:23 +01:00
test_unittest.py Move ExitCode's definition from _pytest.main to _pytest.config 2020-02-10 23:55:06 +02:00
test_warning_types.py Make pytest warnings show as from 'pytest' module instead of '_pytest.warning_types' 2019-06-15 11:48:34 -03:00
test_warnings.py Move test_issue4445_cacheprovider_set into test_cache_failure_warns 2020-02-15 02:01:22 +01:00