(
conftest: PytestPluginManager, args, confcutdir: Optional["os.PathLike[str]"] = None
)
| 24 | |
| 25 | |
| 26 | def conftest_setinitial( |
| 27 | conftest: PytestPluginManager, args, confcutdir: Optional["os.PathLike[str]"] = None |
| 28 | ) -> None: |
| 29 | class Namespace: |
| 30 | def __init__(self) -> None: |
| 31 | self.file_or_dir = args |
| 32 | self.confcutdir = os.fspath(confcutdir) if confcutdir is not None else None |
| 33 | self.noconftest = False |
| 34 | self.pyargs = False |
| 35 | self.importmode = "prepend" |
| 36 | |
| 37 | namespace = cast(argparse.Namespace, Namespace()) |
| 38 | conftest._set_initial_conftests(namespace, rootpath=Path(args[0])) |
| 39 | |
| 40 | |
| 41 | @pytest.mark.usefixtures("_sys_snapshot") |
no test coverage detected