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

Method test_function_basic

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

Source from the content-addressed store, hash-verified

70 repr(metafunc._calls)
71
72 def test_function_basic(self) -> None:
73 def func(arg1, arg2="qwe"):
74 pass
75
76 metafunc = self.Metafunc(func)
77 assert len(metafunc.fixturenames) == 1
78 assert "arg1" in metafunc.fixturenames
79 assert metafunc.function is func
80 assert metafunc.cls is None
81
82 def test_parametrize_single_arg_trailing_comma(self) -> None:
83 """Test that trailing comma in string argnames behaves like tuple argnames.

Callers

nothing calls this directly

Calls 1

MetafuncMethod · 0.95

Tested by

no test coverage detected