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

Method parseconfigure

src/_pytest/pytester.py:1257–1266  ·  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 :hook:`pytest_configure` hook.

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

Source from the content-addressed store, hash-verified

1255 return config
1256
1257 def parseconfigure(self, *args: str | os.PathLike[str]) -> Config:
1258 """Return a new pytest configured Config instance.
1259
1260 Returns a new :py:class:`pytest.Config` instance like
1261 :py:meth:`parseconfig`, but also calls the :hook:`pytest_configure`
1262 hook.
1263 """
1264 config = self.parseconfig(*args)
1265 config._do_configure()
1266 return config
1267
1268 def getitem(
1269 self, source: str | os.PathLike[str], funcname: str = "test_func"

Calls 2

parseconfigMethod · 0.95
_do_configureMethod · 0.80

Tested by

no test coverage detected