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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
264
inline_genitems
ref
function
items, reprec = pytester.inline_genitems()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
268
TestCollectPluginHookRelay
def
class
test_pytest_collect_file
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
269
test_pytest_collect_file
def
function
def test_pytest_collect_file(self, pytester: Pytester) -> None: wascalled = [] class Plugin: def pytest_collect_file(self, fspath: Path) -> None: if not fspath.name.startswith("."): # Ignore hidden files, e.g. .testmondata. wascall...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
272
Plugin
def
class
pytest_collect_file
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
273
pytest_collect_file
def
function
def pytest_collect_file(self, fspath: Path) -> None: if not fspath.name.startswith("."): # Ignore hidden files, e.g. .testmondata. wascalled.append(fspath) pytester.makefile(".abc", "xyz") pytest.main(pytester.path, plugins=[Plugin()])...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
278
makefile
ref
function
pytester.makefile(".abc", "xyz")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
279
main
ref
function
pytest.main(pytester.path, plugins=[Plugin()])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
279
Plugin
ref
function
pytest.main(pytester.path, plugins=[Plugin()])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
284
TestPrunetraceback
def
class
test_custom_repr_failure test_collect_report_postprocessing
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
285
test_custom_repr_failure
def
function
def test_custom_repr_failure(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ import not_exists """ ) pytester.makeconftest( """ import pytest def pytest_collect_file(fspath, parent): return My...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
286
makepyfile
ref
function
p = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
291
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
308
runpytest
ref
function
result = pytester.runpytest(p)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
309
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*ERROR collecting*", "*hello world*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
311
xfail
ref
function
@pytest.mark.xfail(reason="other mechanism for adding to reporting needed")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
312
test_collect_report_postprocessing
def
function
def test_collect_report_postprocessing(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ import not_exists """ ) pytester.makeconftest( """ import pytest @pytest.hookimpl(hookwrapper=_True) def pyte...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
313
makepyfile
ref
function
p = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
318
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
329
runpytest
ref
function
result = pytester.runpytest(p)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
330
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*ERROR collecting*", "*header1*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
333
TestCustomConftests
def
class
test_ignore_collect_path test_ignore_collect_not_called_on_argument test_collectignore_exclude_on_option test_collectignoreglob_exclude_on_option test_pytest_fs_collect_hooks_are_seen test_pytest_collect_file_from_sister_dir
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
334
test_ignore_collect_path
def
function
def test_ignore_collect_path(self, pytester: Pytester) -> None: pytester.makeconftest( """ def pytest_ignore_collect(fspath, config): return fspath.name.startswith("x") or fspath.name == "test_one.py" """ ) sub = pytester.mkdir("xy123") ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
335
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
342
ensure_file
ref
function
ensure_file(sub / "test_hello.py").write_text("syntax error")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
344
makepyfile
ref
function
pytester.makepyfile("def test_hello(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
345
makepyfile
ref
function
pytester.makepyfile(test_one="syntax error")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
346
runpytest
ref
function
result = pytester.runpytest("--fulltrace")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
348
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*1 passed*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
350
test_ignore_collect_not_called_on_argument
def
function
def test_ignore_collect_not_called_on_argument(self, pytester: Pytester) -> None: pytester.makeconftest( """ def pytest_ignore_collect(fspath, config): return _True """ ) p = pytester.makepyfile("def test_hello(): pass") result = pytest...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
351
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
357
makepyfile
ref
function
p = pytester.makepyfile("def test_hello(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
358
runpytest
ref
function
result = pytester.runpytest(p)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
360
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*1 passed*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
361
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
363
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*collected 0 items*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
365
test_collectignore_exclude_on_option
def
function
def test_collectignore_exclude_on_option(self, pytester: Pytester) -> None: pytester.makeconftest( """ from pathlib import Path class MyPathLike: def __init__(self, path): self.path = path def __fspath__(self): ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
366
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
387
makepyfile
ref
function
pytester.makepyfile(test_world="def test_hello(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
388
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
390
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*passed*")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
391
runpytest
ref
function
result = pytester.runpytest("--XX")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
395
test_collectignoreglob_exclude_on_option
def
function
def test_collectignoreglob_exclude_on_option(self, pytester: Pytester) -> None: pytester.makeconftest( """ collect_ignore_glob = ['*w*l[dt]*'] def pytest_addoption(parser): parser.addoption("--XX", action="store_true", default=_False) def pytes...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
396
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
406
makepyfile
ref
function
pytester.makepyfile(test_world="def test_hello(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
407
makepyfile
ref
function
pytester.makepyfile(test_welt="def test_hallo(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
408
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
410
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*collected 0 items*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
411
runpytest
ref
function
result = pytester.runpytest("--XX")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
413
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*2 passed*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
415
test_pytest_fs_collect_hooks_are_seen
def
function
def test_pytest_fs_collect_hooks_are_seen(self, pytester: Pytester) -> None: pytester.makeconftest( """ import pytest class MyModule(pytest.Module): pass def pytest_collect_file(fspath, parent): if fspath.suffix == ".py": ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
416
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
427
makepyfile
ref
function
pytester.makepyfile("def test_x(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
428
runpytest
ref
function
result = pytester.runpytest("--co")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
429
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*MyModule*", "*test_x*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
431
test_pytest_collect_file_from_sister_dir
def
function
def test_pytest_collect_file_from_sister_dir(self, pytester: Pytester) -> None: sub1 = pytester.mkpydir("sub1") sub2 = pytester.mkpydir("sub2") conf1 = pytester.makeconftest( """ import pytest class MyModule1(pytest.Module): pass ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
432
mkpydir
ref
function
sub1 = pytester.mkpydir("sub1")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
433
mkpydir
ref
function
sub2 = pytester.mkpydir("sub2")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
434
makeconftest
ref
function
conf1 = pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
445
makeconftest
ref
function
conf2 = pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
456
makepyfile
ref
function
p = pytester.makepyfile("def test_x(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
459
runpytest
ref
function
result = pytester.runpytest("--co")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
460
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*MyModule1*", "*MyModule2*", "*test_x*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
463
TestSession
def
class
test_collect_topdir get_reported_items test_collect_protocol_single_function test_collect_protocol_method test_collect_custom_nodes_multi_id test_collect_subdir_event_ordering test_collect_two_commandline_args test_serialization_byid test_find_byid_without_instance_parents
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
464
test_collect_topdir
def
function
def test_collect_topdir(self, pytester: Pytester) -> None: p = pytester.makepyfile("def test_func(): pass") id = "::".join([p.name, "test_func"]) # XXX migrate to collectonly? (see below) config = pytester.parseconfig(id) topdir = pytester.path rcol = Session.from_con...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
465
makepyfile
ref
function
p = pytester.makepyfile("def test_func(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
468
parseconfig
ref
function
config = pytester.parseconfig(id)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
470
from_config
ref
function
rcol = Session.from_config(config)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
475
perform_collect
ref
function
colitems = rcol.perform_collect([rcol.nodeid], genitems=False)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
479
get_reported_items
def
function
def get_reported_items(self, hookrec: HookRecorder) -> List[Item]: """Return pytest.Item instances reported by the pytest_collectreport hook""" calls = hookrec.getcalls("pytest_collectreport") return [ x for call in calls for x in call.report.result ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
481
getcalls
ref
function
calls = hookrec.getcalls("pytest_collectreport")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
489
test_collect_protocol_single_function
def
function
def test_collect_protocol_single_function(self, pytester: Pytester) -> None: p = pytester.makepyfile("def test_func(): pass") id = "::".join([p.name, "test_func"]) items, hookrec = pytester.inline_genitems(id) (item,) = items assert item.name == "test_func" newid = it...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
490
makepyfile
ref
function
p = pytester.makepyfile("def test_func(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
492
inline_genitems
ref
function
items, hookrec = pytester.inline_genitems(id)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
499
assert_contains
ref
function
hookrec.assert_contains(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
510
get_reported_items
ref
function
assert [x.name for x in self.get_reported_items(hookrec)] == ["test_func"]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
512
test_collect_protocol_method
def
function
def test_collect_protocol_method(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ class TestClass(object): def test_method(self): pass """ ) normid = p.name + "::TestClass::test_method" for id in [p.na...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
513
makepyfile
ref
function
p = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
522
inline_genitems
ref
function
items, hookrec = pytester.inline_genitems(id)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
528
get_reported_items
ref
function
assert [x.name for x in self.get_reported_items(hookrec)] == ["test_method"]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
530
test_collect_custom_nodes_multi_id
def
function
def test_collect_custom_nodes_multi_id(self, pytester: Pytester) -> None: p = pytester.makepyfile("def test_func(): pass") pytester.makeconftest( """ import pytest class SpecialItem(pytest.Item): def runtest(self): return # ok ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
531
makepyfile
ref
function
p = pytester.makepyfile("def test_func(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
532
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
549
inline_genitems
ref
function
items, hookrec = pytester.inline_genitems(id)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
552
assert_contains
ref
function
hookrec.assert_contains(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
564
get_reported_items
ref
function
assert len(self.get_reported_items(hookrec)) == 2
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
566
test_collect_subdir_event_ordering
def
function
def test_collect_subdir_event_ordering(self, pytester: Pytester) -> None: p = pytester.makepyfile("def test_func(): pass") aaa = pytester.mkpydir("aaa") test_aaa = aaa.joinpath("test_aaa.py") p.replace(test_aaa) items, hookrec = pytester.inline_genitems() assert len(...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
567
makepyfile
ref
function
p = pytester.makepyfile("def test_func(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
568
mkpydir
ref
function
aaa = pytester.mkpydir("aaa")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
572
inline_genitems
ref
function
items, hookrec = pytester.inline_genitems()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
575
assert_contains
ref
function
hookrec.assert_contains(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
583
test_collect_two_commandline_args
def
function
def test_collect_two_commandline_args(self, pytester: Pytester) -> None: p = pytester.makepyfile("def test_func(): pass") aaa = pytester.mkpydir("aaa") bbb = pytester.mkpydir("bbb") test_aaa = aaa.joinpath("test_aaa.py") shutil.copy(p, test_aaa) test_bbb = bbb.joinpat...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
584
makepyfile
ref
function
p = pytester.makepyfile("def test_func(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
585
mkpydir
ref
function
aaa = pytester.mkpydir("aaa")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
586
mkpydir
ref
function
bbb = pytester.mkpydir("bbb")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
594
inline_genitems
ref
function
items, hookrec = pytester.inline_genitems(id)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
597
assert_contains
ref
function
hookrec.assert_contains(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
608
test_serialization_byid
def
function
def test_serialization_byid(self, pytester: Pytester) -> None: pytester.makepyfile("def test_func(): pass") items, hookrec = pytester.inline_genitems() assert len(items) == 1 (item,) = items items2, hookrec = pytester.inline_genitems(item.nodeid) (item2,) = items2 ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
609
makepyfile
ref
function
pytester.makepyfile("def test_func(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
610
inline_genitems
ref
function
items, hookrec = pytester.inline_genitems()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py
testing/test_collection.py
613
inline_genitems
ref
function
items2, hookrec = pytester.inline_genitems(item.nodeid)