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

Method parseconfigure

src/_pytest/pytester.py:1215–1223  ·  view source on GitHub ↗

Return a new pytest configured Config instance. Returns a new :py:class:`pytest.Config` instance like :py:meth:`parseconfig`, but also calls the pytest_configure hook.

(self, *args: Union[str, "os.PathLike[str]"])

Source from the content-addressed store, hash-verified

1213 return config
1214
1215 def parseconfigure(self, *args: Union[str, "os.PathLike[str]"]) -> Config:
1216 """Return a new pytest configured Config instance.
1217
1218 Returns a new :py:class:`pytest.Config` instance like
1219 :py:meth:`parseconfig`, but also calls the pytest_configure hook.
1220 """
1221 config = self.parseconfig(*args)
1222 config._do_configure()
1223 return config
1224
1225 def getitem(
1226 self, source: Union[str, "os.PathLike[str]"], funcname: str = "test_func"

Callers 15

getpathnodeMethod · 0.95
getmodulecolMethod · 0.95
test_lastfailed_xpassMethod · 0.45
rlfMethod · 0.45
check_readmeMethod · 0.45

Calls 2

parseconfigMethod · 0.95
_do_configureMethod · 0.80

Tested by

no test coverage detected