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

Function make_holder

testing/test_pytester.py:169–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167
168
169def make_holder():
170 class apiclass:
171 def pytest_xyz(self, arg):
172 """X"""
173
174 def pytest_xyz_noarg(self):
175 """X"""
176
177 apimod = type(os)("api")
178
179 def pytest_xyz(arg):
180 """X"""
181
182 def pytest_xyz_noarg():
183 """X"""
184
185 apimod.pytest_xyz = pytest_xyz # type: ignore
186 apimod.pytest_xyz_noarg = pytest_xyz_noarg # type: ignore
187 return apiclass, apimod
188
189
190@pytest.mark.parametrize("holder", make_holder())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected