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

Function test_hookvalidation_unknown

testing/test_helpconfig.py:81–90  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

79
80
81def test_hookvalidation_unknown(pytester: Pytester) -> None:
82 pytester.makeconftest(
83 """
84 def pytest_hello(xyz):
85 pass
86 """
87 )
88 result = pytester.runpytest()
89 assert result.ret != 0
90 result.stdout.fnmatch_lines(["*unknown hook*pytest_hello*"])
91
92
93def test_hookvalidation_optional(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