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

Method test_funcarg_lookupfails

testing/python/fixtures.py:110–120  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

108 assert pytest._fillfuncargs == fixtures._fillfuncargs
109
110 def test_funcarg_lookupfails(self, pytester: Pytester) -> None:
111 pytester.copy_example()
112 result = pytester.runpytest() # "--collect-only")
113 assert result.ret != 0
114 result.stdout.fnmatch_lines(
115 """
116 *def test_func(some)*
117 *fixture*some*not found*
118 *xyzsomething*
119 """
120 )
121
122 def test_detect_recursive_dependency_error(self, pytester: Pytester) -> None:
123 pytester.copy_example()

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
copy_exampleMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected