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

Function test_deprecation_of_cmdline_preparse

testing/deprecated_test.py:265–279  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

263
264
265def test_deprecation_of_cmdline_preparse(pytester: Pytester) -> None:
266 pytester.makeconftest(
267 """
268 def pytest_cmdline_preparse(config, args):
269 ...
270
271 """
272 )
273 result = pytester.runpytest()
274 result.stdout.fnmatch_lines(
275 [
276 "*PytestRemovedIn8Warning: The pytest_cmdline_preparse hook is deprecated*",
277 "*Please use pytest_load_initial_conftests hook instead.*",
278 ]
279 )
280
281
282def test_node_ctor_fspath_argument_is_deprecated(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makeconftestMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected