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

Class FakeConfig

testing/test_junitxml.py:947–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945 gotten: List[object] = []
946
947 class FakeConfig:
948 if TYPE_CHECKING:
949 workerinput = None
950
951 def __init__(self):
952 self.pluginmanager = self
953 self.option = self
954 self.stash = Stash()
955
956 def getini(self, name):
957 return "pytest"
958
959 junitprefix = None
960 # XXX: shouldn't need tmp_path ?
961 xmlpath = str(tmp_path.joinpath("junix.xml"))
962 register = gotten.append
963
964 fake_config = cast(Config, FakeConfig())
965 from _pytest import junitxml

Callers 1

Calls

no outgoing calls

Tested by 1