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

Method test_funcarg_basic

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

Source from the content-addressed store, hash-verified

127 )
128
129 def test_funcarg_basic(self, pytester: Pytester) -> None:
130 pytester.copy_example()
131 item = pytester.getitem(Path("test_funcarg_basic.py"))
132 assert isinstance(item, Function)
133 # Execute's item's setup, which fills fixtures.
134 item.session._setupstate.setup(item)
135 del item.funcargs["request"]
136 assert len(get_public_names(item.funcargs)) == 2
137 assert item.funcargs["some"] == "test_func"
138 assert item.funcargs["other"] == 42
139
140 def test_funcarg_lookup_modulelevel(self, pytester: Pytester) -> None:
141 pytester.copy_example()

Callers

nothing calls this directly

Calls 4

get_public_namesFunction · 0.90
copy_exampleMethod · 0.45
getitemMethod · 0.45
setupMethod · 0.45

Tested by

no test coverage detected