pytest2/src/_pytest
Ran Benita 3234c79ee5 fixtures: add an internal API for registering a fixture
Add a function on the `FixtureManager` to register a fixture with
pytest. Currently this can only be done through `parsefactories`.

My aim is to eventually make something like this available to plugins,
as it's a pretty common need.
2024-01-08 21:02:59 +02:00
..
_code code review: kwarg-only `match`, replace `recursive` with `depth` 2023-09-17 22:28:32 +01:00
_io terminalwriter: fix crash trying to highlight empty source 2024-01-02 19:37:24 +02:00
_py [pre-commit.ci] pre-commit autoupdate (#11510) 2023-10-23 08:05:40 -03:00
assertion Add syntactic highlights to the error explanations (#11661) 2023-12-21 17:11:56 +00:00
config Remove deprecated py.path (`fspath`) node constructor arguments 2024-01-03 14:29:45 +02:00
mark Clarified `markers` ini property. Fix #11738 (#11739) 2024-01-03 14:20:54 +02:00
__init__.py Add pytest.version_tuple 2021-06-14 09:04:14 -03:00
_argcomplete.py Use os.sep instead of os.path.sep. 2022-12-01 18:16:02 +01:00
cacheprovider.py Rework Session and Package collection 2023-12-10 17:01:39 +02:00
capture.py doc: fix some broken Sphinx references 2023-12-07 00:30:35 +02:00
compat.py Remove deprecated py.path (`fspath`) node constructor arguments 2024-01-03 14:29:45 +02:00
debugging.py Switch to new-style pluggy hook wrappers 2023-07-14 22:47:48 +03:00
deprecated.py Remove deprecated py.path (`fspath`) node constructor arguments 2024-01-03 14:29:45 +02:00
doctest.py doctest: some missing type annotations 2023-09-08 15:59:17 +03:00
faulthandler.py Fix for operation on closed file in faulthandler teardown (#11584) 2023-11-22 22:05:00 +02:00
fixtures.py fixtures: add an internal API for registering a fixture 2024-01-08 21:02:59 +02:00
freeze_support.py Remove py version printing, traceback filtering, freezing 2021-10-16 12:01:31 +03:00
helpconfig.py Fixes for typed pluggy 2023-08-26 22:13:24 +03:00
hookspec.py Remove deprecated py.path hook arguments 2024-01-03 14:29:42 +02:00
junitxml.py Use hyphenated cmdline options in docs (#11490) 2023-10-10 21:16:24 +00:00
legacypath.py Remove deprecated py.path (`fspath`) node constructor arguments 2024-01-03 14:29:45 +02:00
logging.py Some minor typing tweaks 2023-12-19 23:29:27 +02:00
main.py Fix teardown error reporting when `--maxfail=1` (#11721) 2024-01-03 19:39:24 +02:00
monkeypatch.py Drop Python 3.7 2023-06-30 14:55:42 -07:00
nodes.py nodes: fix attribute name `fspath` -> `path` in `get_fslocation_from_item` 2024-01-04 22:32:34 +02:00
outcomes.py Remove deprecated pytest.{exit,fail,skip}(msg=...) argument 2024-01-02 12:20:47 +02:00
pastebin.py Document the --code-highlight default (#9883) 2022-05-31 16:32:51 -03:00
pathlib.py Rework Session and Package collection 2023-12-10 17:01:39 +02:00
py.typed Publish our types 2020-07-04 13:18:15 +03:00
pytester.py doc: fix some broken Sphinx references 2023-12-07 00:30:35 +02:00
pytester_assertions.py Make 'warnings' and 'deselected' in assert_outcomes optional (#9475) 2022-01-27 12:18:36 +01:00
python.py Remove deprecated py.path (`fspath`) node constructor arguments 2024-01-03 14:29:45 +02:00
python_api.py doc: fix more broken Sphinx references 2023-12-07 11:50:02 +02:00
python_path.py Rename ``pythonpath`` plugin to ``python_path`` 2022-02-09 10:03:20 +02:00
recwarn.py Fix a mistake in pytest.warns' docstring (expect_warning accepts tuples, not any sequence) 2024-01-04 11:51:12 +01:00
reports.py Use typing.Literal without TYPE_CHECKING checks 2023-07-16 01:11:21 +03:00
runner.py Fix teardown error reporting when `--maxfail=1` (#11721) 2024-01-03 19:39:24 +02:00
scope.py Use typing.Literal without TYPE_CHECKING checks 2023-07-16 01:11:21 +03:00
setuponly.py Switch to new-style pluggy hook wrappers 2023-07-14 22:47:48 +03:00
setupplan.py Document the --code-highlight default (#9883) 2022-05-31 16:32:51 -03:00
skipping.py Switch to new-style pluggy hook wrappers 2023-07-14 22:47:48 +03:00
stash.py stash: make Stash and StashKey public 2021-07-24 17:40:08 +03:00
stepwise.py Do not update cache from xdist worker (#10641) 2023-01-13 07:14:52 -03:00
terminal.py Add summary for xfails with -rxX option (#11574) 2024-01-05 09:59:19 -03:00
threadexception.py Switch to new-style pluggy hook wrappers 2023-07-14 22:47:48 +03:00
timing.py fix mock_timing fixture name (typo) in timing.py 2020-11-23 20:45:12 +00:00
tmpdir.py Use typing.Literal without TYPE_CHECKING checks 2023-07-16 01:11:21 +03:00
unittest.py unittest: inline `_make_xunit_fixture` 2024-01-05 14:37:03 +02:00
unraisableexception.py Switch to new-style pluggy hook wrappers 2023-07-14 22:47:48 +03:00
warning_types.py Remove `PytestRemovedIn8Warning` 2024-01-03 14:29:45 +02:00
warnings.py Remove `PytestRemovedIn8Warning` 2024-01-03 14:29:45 +02:00