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

Method test_function_basic

testing/python/metafunc.py:61–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 repr(metafunc._calls)
60
61 def test_function_basic(self) -> None:
62 def func(arg1, arg2="qwe"):
63 pass
64
65 metafunc = self.Metafunc(func)
66 assert len(metafunc.fixturenames) == 1
67 assert "arg1" in metafunc.fixturenames
68 assert metafunc.function is func
69 assert metafunc.cls is None
70
71 def test_parametrize_error(self) -> None:
72 def func(x, y):

Callers

nothing calls this directly

Calls 1

MetafuncMethod · 0.95

Tested by

no test coverage detected