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/collect.py
testing/python/collect.py
73
raises
ref
function
pytest.raises(modcol.CollectError, modcol.collect)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
74
raises
ref
function
pytest.raises(modcol.CollectError, modcol.collect)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
76
test_module_considers_pluginmanager_at_import
def
function
def test_module_considers_pluginmanager_at_import(self, pytester: Pytester) -> None: modcol = pytester.getmodulecol("pytest_plugins='xasdlkj',") pytest.raises(ImportError, lambda: modcol.obj) def test_invalid_test_module_name(self, pytester: Pytester) -> None: a = pytester.mkdir("a") ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
77
getmodulecol
ref
function
modcol = pytester.getmodulecol("pytest_plugins='xasdlkj',")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
78
raises
ref
function
pytest.raises(ImportError, lambda: modcol.obj)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
80
test_invalid_test_module_name
def
function
def test_invalid_test_module_name(self, pytester: Pytester) -> None: a = pytester.mkdir("a") a.joinpath("test_one.part1.py").touch() result = pytester.runpytest() result.stdout.fnmatch_lines( [ "ImportError while importing test module*test_one.part1*", ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
82
joinpath
ref
function
a.joinpath("test_one.part1.py").touch()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
82
touch
ref
function
a.joinpath("test_one.part1.py").touch()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
83
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
84
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
91
parametrize
ref
function
@pytest.mark.parametrize("verbose", [0, 1, 2])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
92
test_show_traceback_import_error
def
function
def test_show_traceback_import_error( self, pytester: Pytester, verbose: int ) -> None: """Import errors when collecting modules should display the traceback (#1976). With low verbosity we omit pytest and internal modules, otherwise show all traceback entries. """ pytest...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
99
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
105
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
111
runpytest
ref
function
result = pytester.runpytest(*args)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
112
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
128
test_show_traceback_import_error_unicode
def
function
def test_show_traceback_import_error_unicode(self, pytester: Pytester) -> None: """Check test modules collected which raise ImportError with unicode messages are handled properly (#2336). """ pytester.makepyfile("raise ImportError('Something bad happened ☺')") result = pytest...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
132
makepyfile
ref
function
pytester.makepyfile("raise ImportError('Something bad happened ☺')")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
133
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
134
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
144
TestClass
def
class
test_class_with_init_warning test_class_with_new_warning test_class_subclassobject test_static_method test_setup_teardown_class_as_classmethod test_issue1035_obj_has_getattr test_issue1579_namedtuple test_issue2234_property
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
145
test_class_with_init_warning
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
146
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
153
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
154
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
161
test_class_with_new_warning
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
162
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
169
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
170
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
177
test_class_subclassobject
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
178
getmodulecol
ref
function
pytester.getmodulecol(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
184
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
185
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*collected 0*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
187
test_static_method
def
function
def test_static_method(self, pytester: Pytester) -> None: """Support for collecting staticmethod tests (#2528, #2699)""" pytester.getmodulecol( """ import pytest class Test(object): @staticmethod def test_something(): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
189
getmodulecol
ref
function
pytester.getmodulecol(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
206
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
207
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*collected 2 items*", "*2 passed in*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
209
test_setup_teardown_class_as_classmethod
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
210
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
223
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
224
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*1 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
226
test_issue1035_obj_has_getattr
def
function
def test_issue1035_obj_has_getattr(self, pytester: Pytester) -> None: modcol = pytester.getmodulecol( """ class Chameleon(object): def __getattr__(self, name): return _True chameleon = Chameleon() """ ) colitems ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
227
getmodulecol
ref
function
modcol = pytester.getmodulecol(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
235
collect
ref
function
colitems = modcol.collect()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
238
test_issue1579_namedtuple
def
function
def test_issue1579_namedtuple(self, pytester: Pytester) -> None: pytester.makepyfile( """ import collections TestCase = collections.namedtuple('TestCase', ['a']) """ ) result = pytester.runpytest() result.stdout.fnmatch_lines( ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
239
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
246
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
247
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
252
test_issue2234_property
def
function
def test_issue2234_property(self, pytester: Pytester) -> None: pytester.makepyfile( """ class TestCase(object): @property def prop(self): raise NotImplementedError() """ ) result = pytester.runpytest() ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
253
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
261
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
265
TestFunction
def
class
test_getmodulecollector test_function_as_object_instance_ignored make_function test_function_equality test_repr_produces_actual_test_id test_issue197_parametrize_emptyset test_single_tuple_unwraps_values test_issue213_parametrize_value_no_equal test_parametrize_with_non_hashable_values test_parametrize_with_non_hashabl...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
266
test_getmodulecollector
def
function
def test_getmodulecollector(self, pytester: Pytester) -> None: item = pytester.getitem("def test_func(): pass") modcol = item.getparent(pytest.Module) assert isinstance(modcol, pytest.Module) assert hasattr(modcol.obj, "test_func") @pytest.mark.filterwarnings("default") def ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
267
getitem
ref
function
item = pytester.getitem("def test_func(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
268
getparent
ref
function
modcol = item.getparent(pytest.Module)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
272
filterwarnings
ref
function
@pytest.mark.filterwarnings("default")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
273
test_function_as_object_instance_ignored
def
function
def test_function_as_object_instance_ignored(self, pytester: Pytester) -> None: pytester.makepyfile( """ class A(object): def __call__(self, tmp_path): 0/0 test_a = A() """ ) result = pytester.runpytest() ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
274
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
283
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
284
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
293
make_function
def
function
def make_function(pytester: Pytester, **kwargs: Any) -> Any: from _pytest.fixtures import FixtureManager config = pytester.parseconfigure() session = Session.from_config(config) session._fixturemanager = FixtureManager(session) return pytest.Function.from_parent(parent=sess...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
296
parseconfigure
ref
function
config = pytester.parseconfigure()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
297
from_config
ref
function
session = Session.from_config(config)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
298
FixtureManager
ref
function
session._fixturemanager = FixtureManager(session)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
300
from_parent
ref
function
return pytest.Function.from_parent(parent=session, **kwargs)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
302
test_function_equality
def
function
def test_function_equality(self, pytester: Pytester) -> None: def func1(): pass def func2(): pass f1 = self.make_function(pytester, name="name", callobj=func1) assert f1 == f1 f2 = self.make_function( pytester, name="name", callobj=func2,...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
303
func1
def
function
def func1(): pass def func2(): pass f1 = self.make_function(pytester, name="name", callobj=func1) assert f1 == f1 f2 = self.make_function( pytester, name="name", callobj=func2, originalname="foobar" ) assert f1 != f2 def ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
306
func2
def
function
def func2(): pass f1 = self.make_function(pytester, name="name", callobj=func1) assert f1 == f1 f2 = self.make_function( pytester, name="name", callobj=func2, originalname="foobar" ) assert f1 != f2 def test_repr_produces_actual_test_id(self,...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
309
make_function
ref
function
f1 = self.make_function(pytester, name="name", callobj=func1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
311
make_function
ref
function
f2 = self.make_function(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
316
test_repr_produces_actual_test_id
def
function
def test_repr_produces_actual_test_id(self, pytester: Pytester) -> None: f = self.make_function( pytester, name=r"test[\xe5]", callobj=self.test_repr_produces_actual_test_id ) assert repr(f) == r"<Function test[\xe5]>" def test_issue197_parametrize_emptyset(self, pytester: P...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
317
make_function
ref
function
f = self.make_function(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
322
test_issue197_parametrize_emptyset
def
function
def test_issue197_parametrize_emptyset(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.mark.parametrize('arg', []) def test_function(arg): pass """ ) reprec = pytester.inline_run() ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
323
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
331
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
332
assertoutcome
ref
function
reprec.assertoutcome(skipped=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
334
test_single_tuple_unwraps_values
def
function
def test_single_tuple_unwraps_values(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.mark.parametrize(('arg',), [(1,)]) def test_function(arg): assert arg == 1 """ ) reprec = pytester.in...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
335
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
343
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
344
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
346
test_issue213_parametrize_value_no_equal
def
function
def test_issue213_parametrize_value_no_equal(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest class A(object): def __eq__(self, other): raise ValueError("not possible") @pytest.mark.parametrize('arg'...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
347
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
358
inline_run
ref
function
reprec = pytester.inline_run("--fulltrace")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
359
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
361
test_parametrize_with_non_hashable_values
def
function
def test_parametrize_with_non_hashable_values(self, pytester: Pytester) -> None: """Test parametrization with non-hashable values.""" pytester.makepyfile( """ archival_mapping = { '1.0': {'tag': '1.0'}, '1.2.2a1': {'tag': 'release-1.2.2a1'}, ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
363
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
378
inline_run
ref
function
rec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
379
assertoutcome
ref
function
rec.assertoutcome(passed=2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
381
test_parametrize_with_non_hashable_values_indirect
def
function
def test_parametrize_with_non_hashable_values_indirect( self, pytester: Pytester ) -> None: """Test parametrization with non-hashable values with indirect parametrization.""" pytester.makepyfile( """ archival_mapping = { '1.0': {'tag': '1.0'}, ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
385
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
409
inline_run
ref
function
rec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
410
assertoutcome
ref
function
rec.assertoutcome(passed=2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
412
test_parametrize_overrides_fixture
def
function
def test_parametrize_overrides_fixture(self, pytester: Pytester) -> None: """Test parametrization when parameter overrides existing fixture with same name.""" pytester.makepyfile( """ import pytest @pytest.fixture def value(): return '...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
414
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
438
inline_run
ref
function
rec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
439
assertoutcome
ref
function
rec.assertoutcome(passed=3)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
441
test_parametrize_overrides_parametrized_fixture
def
function
def test_parametrize_overrides_parametrized_fixture( self, pytester: Pytester ) -> None: """Test parametrization when parameter overrides existing parametrized fixture with same name.""" pytester.makepyfile( """ import pytest @pytest.fixture(params=[1...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
445
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
459
inline_run
ref
function
rec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
460
assertoutcome
ref
function
rec.assertoutcome(passed=1)