MCPcopy
hub / github.com/pytest-dev/pytest / conftest_setinitial

Function conftest_setinitial

testing/test_conftest.py:26–40  ·  view source on GitHub ↗
(
    conftest: PytestPluginManager,
    args: Sequence[str | Path],
    confcutdir: Path | None = None,
)

Source from the content-addressed store, hash-verified

24
25
26def conftest_setinitial(
27 conftest: PytestPluginManager,
28 args: Sequence[str | Path],
29 confcutdir: Path | None = None,
30) -> None:
31 conftest._set_initial_conftests(
32 args=args,
33 pyargs=False,
34 noconftest=False,
35 rootpath=Path(args[0]),
36 confcutdir=confcutdir,
37 invocation_dir=Path.cwd(),
38 importmode="prepend",
39 consider_namespace_packages=False,
40 )
41
42
43@pytest.mark.usefixtures("_sys_snapshot")

Calls 1

Tested by

no test coverage detected