fname
stringlengths
63
176
rel_fname
stringclasses
706 values
line
int64
-1
4.5k
name
stringlengths
1
81
kind
stringclasses
2 values
category
stringclasses
2 values
info
stringlengths
0
77.9k
⌀
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
206
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
216
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
217
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
219
test_mock
def
function
def test_mock(self, pytester: Pytester) -> None: pytest.importorskip("mock", "1.0.1") pytester.makepyfile( """ import os import unittest import mock class T(unittest.TestCase): @mock.patch("os.path.abspath") ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
220
importorskip
ref
function
pytest.importorskip("mock", "1.0.1")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
221
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
244
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
245
assertoutcome
ref
function
reprec.assertoutcome(passed=2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
246
getcalls
ref
function
calls = reprec.getcalls("pytest_runtest_logreport")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
252
test_mock_sorting
def
function
def test_mock_sorting(self, pytester: Pytester) -> None: pytest.importorskip("mock", "1.0.1") pytester.makepyfile( """ import os import mock @mock.patch("os.path.abspath") def test_one(abspath): pass @mock.patch...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
253
importorskip
ref
function
pytest.importorskip("mock", "1.0.1")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
254
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
270
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
271
getreports
ref
function
calls = reprec.getreports("pytest_runtest_logreport")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
276
test_mock_double_patch_issue473
def
function
def test_mock_double_patch_issue473(self, pytester: Pytester) -> None: pytest.importorskip("mock", "1.0.1") pytester.makepyfile( """ from mock import patch from pytest import mark @patch('os.getcwd') @patch('os.path') @mark.slo...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
277
importorskip
ref
function
pytest.importorskip("mock", "1.0.1")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
278
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
291
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
292
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
295
TestReRunTests
def
class
test_rerun
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
296
test_rerun
def
function
def test_rerun(self, pytester: Pytester) -> None: pytester.makeconftest( """ from _pytest.runner import runtestprotocol def pytest_runtest_protocol(item, nextitem): runtestprotocol(item, log=_False, nextitem=nextitem) runtestprotocol(item, ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
297
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
305
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
321
runpytest
ref
function
result = pytester.runpytest("-s")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
322
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
328
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
335
test_pytestconfig_is_session_scoped
def
function
def test_pytestconfig_is_session_scoped() -> None: from _pytest.fixtures import pytestconfig marker = getfixturemarker(pytestconfig) assert marker is not None assert marker.scope == "session"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
338
getfixturemarker
ref
function
marker = getfixturemarker(pytestconfig)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
343
TestNoselikeTestAttribute
def
class
test_module_with_global_test test_class_and_method test_unittest_class test_class_with_nasty_getattr
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
344
test_module_with_global_test
def
function
def test_module_with_global_test(self, pytester: Pytester) -> None: pytester.makepyfile( """ __test__ = _False def test_hello(): pass """ ) reprec = pytester.inline_run() assert not reprec.getfailedcollections() call...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
345
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
352
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
353
getfailedcollections
ref
function
assert not reprec.getfailedcollections()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
354
getreports
ref
function
calls = reprec.getreports("pytest_runtest_logreport")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
357
test_class_and_method
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
358
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
371
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
372
getfailedcollections
ref
function
assert not reprec.getfailedcollections()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
373
getreports
ref
function
calls = reprec.getreports("pytest_runtest_logreport")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
376
test_unittest_class
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
377
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
389
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
390
getfailedcollections
ref
function
assert not reprec.getfailedcollections()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
391
getcalls
ref
function
call = reprec.getcalls("pytest_collection_modifyitems")[0]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
395
test_class_with_nasty_getattr
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
402
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
421
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
422
getfailedcollections
ref
function
assert not reprec.getfailedcollections()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
423
getcalls
ref
function
call = reprec.getcalls("pytest_collection_modifyitems")[0]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
427
TestParameterize
def
class
test_idfn_marker test_idfn_fixture
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
430
test_idfn_marker
def
function
def test_idfn_marker(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest def idfn(param): if param == 0: return 'spam' elif param == 1: return 'ham' else: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
431
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
448
runpytest
ref
function
res = pytester.runpytest("--collect-only")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
449
fnmatch_lines
ref
function
res.stdout.fnmatch_lines(["*spam-2*", "*ham-2*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
451
test_idfn_fixture
def
function
def test_idfn_fixture(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest def idfn(param): if param == 0: return 'spam' elif param == 1: return 'ham' else: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
452
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
476
runpytest
ref
function
res = pytester.runpytest("--collect-only")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
477
fnmatch_lines
ref
function
res.stdout.fnmatch_lines(["*spam-2*", "*ham-2*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
480
test_function_instance
def
function
def test_function_instance(pytester: Pytester) -> None: items = pytester.getitems( """ def test_func(): pass class TestIt: def test_method(self): pass @classmethod def test_class(cls): pass @staticmethod def test_static(): pass ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/integration.py
testing/python/integration.py
481
getitems
ref
function
items = pytester.getitems(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
31
TestMetafunc
def
class
Metafunc test_no_funcargs test_function_basic test_parametrize_error test_parametrize_error_iterator test_parametrize_bad_scope test_parametrize_request_name test_find_parametrized_scope test_parametrize_and_id test_parametrize_and_id_unicode test_parametrize_with_wrong_number_of_ids test_parametrize_ids_iterator_witho...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
32
Metafunc
def
function
def Metafunc(self, func, config=None) -> python.Metafunc: # The unit tests of this class check if things work correctly # on the funcarg level, so we don't need a full blown # initialization. class FuncFixtureInfoMock: name2fixturedefs = None def __init__(sel...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
36
FuncFixtureInfoMock
def
class
__init__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
43
DefinitionMock
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
47
getfuncargnames
ref
function
names = getfuncargnames(func)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
48
FuncFixtureInfoMock
ref
function
fixtureinfo: Any = FuncFixtureInfoMock(names)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
49
_create
ref
function
definition: Any = DefinitionMock._create(func, "mock::nodeid")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
50
Metafunc
ref
function
return python.Metafunc(definition, fixtureinfo, config, _ispytest=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
52
test_no_funcargs
def
function
def test_no_funcargs(self) -> None: def function(): pass metafunc = self.Metafunc(function) assert not metafunc.fixturenames repr(metafunc._calls) def test_function_basic(self) -> None: def func(arg1, arg2="qwe"): pass metafunc = self.Me...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
53
function
def
function
def function(): pass metafunc = self.Metafunc(function) assert not metafunc.fixturenames repr(metafunc._calls) def test_function_basic(self) -> None: def func(arg1, arg2="qwe"): pass metafunc = self.Metafunc(func) assert len(metafunc...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
56
Metafunc
ref
function
metafunc = self.Metafunc(function)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
60
test_function_basic
def
function
def test_function_basic(self) -> None: def func(arg1, arg2="qwe"): pass metafunc = self.Metafunc(func) assert len(metafunc.fixturenames) == 1 assert "arg1" in metafunc.fixturenames assert metafunc.function is func assert metafunc.cls is None def test...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
61
func
def
function
def func(arg1, arg2="qwe"): pass metafunc = self.Metafunc(func) assert len(metafunc.fixturenames) == 1 assert "arg1" in metafunc.fixturenames assert metafunc.function is func assert metafunc.cls is None def test_parametrize_error(self) -> None: d...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
64
Metafunc
ref
function
metafunc = self.Metafunc(func)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
70
test_parametrize_error
def
function
def test_parametrize_error(self) -> None: def func(x, y): pass metafunc = self.Metafunc(func) metafunc.parametrize("x", [1, 2]) pytest.raises(ValueError, lambda: metafunc.parametrize("x", [5, 6])) pytest.raises(ValueError, lambda: metafunc.parametrize("x", [5, 6]...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
71
func
def
function
def func(x, y): pass metafunc = self.Metafunc(func) metafunc.parametrize("x", [1, 2]) pytest.raises(ValueError, lambda: metafunc.parametrize("x", [5, 6])) pytest.raises(ValueError, lambda: metafunc.parametrize("x", [5, 6])) metafunc.parametrize("y", [1, 2]) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
74
Metafunc
ref
function
metafunc = self.Metafunc(func)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
75
parametrize
ref
function
metafunc.parametrize("x", [1, 2])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
76
raises
ref
function
pytest.raises(ValueError, lambda: metafunc.parametrize("x", [5, 6]))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
76
parametrize
ref
function
pytest.raises(ValueError, lambda: metafunc.parametrize("x", [5, 6]))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
77
raises
ref
function
pytest.raises(ValueError, lambda: metafunc.parametrize("x", [5, 6]))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
77
parametrize
ref
function
pytest.raises(ValueError, lambda: metafunc.parametrize("x", [5, 6]))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
78
parametrize
ref
function
metafunc.parametrize("y", [1, 2])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
79
raises
ref
function
pytest.raises(ValueError, lambda: metafunc.parametrize("y", [5, 6]))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
79
parametrize
ref
function
pytest.raises(ValueError, lambda: metafunc.parametrize("y", [5, 6]))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
80
raises
ref
function
pytest.raises(ValueError, lambda: metafunc.parametrize("y", [5, 6]))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
80
parametrize
ref
function
pytest.raises(ValueError, lambda: metafunc.parametrize("y", [5, 6]))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
82
raises
ref
function
with pytest.raises(TypeError, match="^ids must be a callable or an iterable$"):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
83
parametrize
ref
function
metafunc.parametrize("y", [5, 6], ids=42) # type: ignore[arg-type]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
85
test_parametrize_error_iterator
def
function
def test_parametrize_error_iterator(self) -> None: def func(x): raise NotImplementedError() class Exc(Exception): def __repr__(self): return "Exc(from_gen)" def gen() -> Iterator[Union[int, None, Exc]]: yield 0 yield None ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
86
func
def
function
def func(x): raise NotImplementedError() class Exc(Exception): def __repr__(self): return "Exc(from_gen)" def gen() -> Iterator[Union[int, None, Exc]]: yield 0 yield None yield Exc() metafunc = self.Metafunc(f...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
89
Exc
def
class
__repr__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
93
gen
def
function
def gen() -> Iterator[Union[int, None, Exc]]: yield 0 yield None yield Exc() metafunc = self.Metafunc(func) # When the input is an iterator, only len(args) are taken, # so the bad Exc isn't reached. metafunc.parametrize("x", [1, 2], ids=gen())...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
96
Exc
ref
function
yield Exc()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
98
Metafunc
ref
function
metafunc = self.Metafunc(func)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
101
parametrize
ref
function
metafunc.parametrize("x", [1, 2], ids=gen()) # type: ignore[arg-type]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
101
gen
ref
function
metafunc.parametrize("x", [1, 2], ids=gen()) # type: ignore[arg-type]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
106
raises
ref
function
with pytest.raises(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
113
parametrize
ref
function
metafunc.parametrize("x", [1, 2, 3], ids=gen()) # type: ignore[arg-type]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
113
gen
ref
function
metafunc.parametrize("x", [1, 2, 3], ids=gen()) # type: ignore[arg-type]