MCPcopy Create free account
hub / github.com/pytest-dev/pytest / Namespace

Class Namespace

testing/test_conftest.py:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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]))

Callers 1

conftest_setinitialFunction · 0.85

Calls

no outgoing calls

Tested by 1

conftest_setinitialFunction · 0.68