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/test_collection.py
testing/test_collection.py
349
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
355
makepyfile
ref
function
p = pytester.makepyfile("def test_hello(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
356
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
358
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*1 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
359
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
361
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*collected 0 items*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
363
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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
364
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
385
makepyfile
ref
function
pytester.makepyfile(test_world="def test_hello(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
386
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
388
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*passed*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
389
runpytest
ref
function
result = pytester.runpytest("--XX")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
393
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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
394
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
404
makepyfile
ref
function
pytester.makepyfile(test_world="def test_hello(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
405
makepyfile
ref
function
pytester.makepyfile(test_welt="def test_hallo(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
406
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
408
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*collected 0 items*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
409
runpytest
ref
function
result = pytester.runpytest("--XX")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
411
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*2 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
413
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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
414
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
425
makepyfile
ref
function
pytester.makepyfile("def test_x(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
426
runpytest
ref
function
result = pytester.runpytest("--co")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
427
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*MyModule*", "*test_x*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
429
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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
430
mkpydir
ref
function
sub1 = pytester.mkpydir("sub1")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
431
mkpydir
ref
function
sub2 = pytester.mkpydir("sub2")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
432
makeconftest
ref
function
conf1 = pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
443
makeconftest
ref
function
conf2 = pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
454
makepyfile
ref
function
p = pytester.makepyfile("def test_x(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
457
runpytest
ref
function
result = pytester.runpytest("--co")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
458
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*MyModule1*", "*MyModule2*", "*test_x*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
461
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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
462
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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
463
makepyfile
ref
function
p = pytester.makepyfile("def test_func(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
466
parseconfig
ref
function
config = pytester.parseconfig(id)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
468
from_config
ref
function
rcol = Session.from_config(config)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
473
perform_collect
ref
function
colitems = rcol.perform_collect([rcol.nodeid], genitems=False)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
477
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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
479
getcalls
ref
function
calls = hookrec.getcalls("pytest_collectreport")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
487
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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
488
makepyfile
ref
function
p = pytester.makepyfile("def test_func(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
490
inline_genitems
ref
function
items, hookrec = pytester.inline_genitems(id)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
497
assert_contains
ref
function
hookrec.assert_contains(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
508
get_reported_items
ref
function
assert [x.name for x in self.get_reported_items(hookrec)] == ["test_func"]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
510
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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
511
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
520
inline_genitems
ref
function
items, hookrec = pytester.inline_genitems(id)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
526
get_reported_items
ref
function
assert [x.name for x in self.get_reported_items(hookrec)] == ["test_method"]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
528
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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
529
makepyfile
ref
function
p = pytester.makepyfile("def test_func(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
530
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
547
inline_genitems
ref
function
items, hookrec = pytester.inline_genitems(id)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
550
assert_contains
ref
function
hookrec.assert_contains(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
562
get_reported_items
ref
function
assert len(self.get_reported_items(hookrec)) == 2
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
564
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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
565
makepyfile
ref
function
p = pytester.makepyfile("def test_func(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
566
mkpydir
ref
function
aaa = pytester.mkpydir("aaa")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
570
inline_genitems
ref
function
items, hookrec = pytester.inline_genitems()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
573
assert_contains
ref
function
hookrec.assert_contains(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
581
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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
582
makepyfile
ref
function
p = pytester.makepyfile("def test_func(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
583
mkpydir
ref
function
aaa = pytester.mkpydir("aaa")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
584
mkpydir
ref
function
bbb = pytester.mkpydir("bbb")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
592
inline_genitems
ref
function
items, hookrec = pytester.inline_genitems(id)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
595
assert_contains
ref
function
hookrec.assert_contains(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
606
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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
607
makepyfile
ref
function
pytester.makepyfile("def test_func(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
608
inline_genitems
ref
function
items, hookrec = pytester.inline_genitems()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
611
inline_genitems
ref
function
items2, hookrec = pytester.inline_genitems(item.nodeid)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
616
test_find_byid_without_instance_parents
def
function
def test_find_byid_without_instance_parents(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ class TestClass(object): def test_method(self): pass """ ) arg = p.name + "::TestClass::test_method" items, ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
617
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
625
inline_genitems
ref
function
items, hookrec = pytester.inline_genitems(arg)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
630
get_reported_items
ref
function
assert [x.name for x in self.get_reported_items(hookrec)] == ["test_method"]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
633
Test_getinitialnodes
def
class
test_global_file test_pkgfile
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
634
test_global_file
def
function
def test_global_file(self, pytester: Pytester) -> None: tmp_path = pytester.path x = ensure_file(tmp_path / "x.py") config = pytester.parseconfigure(x) col = pytester.getnode(config, x) assert isinstance(col, pytest.Module) assert col.name == "x.py" assert col...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
636
ensure_file
ref
function
x = ensure_file(tmp_path / "x.py")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
637
parseconfigure
ref
function
config = pytester.parseconfigure(x)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
638
getnode
ref
function
col = pytester.getnode(config, x)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
643
listchain
ref
function
for parent in col.listchain():
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
646
test_pkgfile
def
function
def test_pkgfile(self, pytester: Pytester) -> None: """Verify nesting when a module is within a package. The parent chain should match: Module<x.py> -> Package<subdir> -> Session. Session's parent should always be None. """ tmp_path = pytester.path subdir = tmp_pa...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
653
ensure_file
ref
function
x = ensure_file(subdir / "x.py")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
654
ensure_file
ref
function
ensure_file(subdir / "__init__.py")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
656
parseconfigure
ref
function
config = pytester.parseconfigure(x)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
657
getnode
ref
function
col = pytester.getnode(config, x)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
665
listchain
ref
function
for parent in col.listchain():
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
669
Test_genitems
def
class
test_check_collect_hashes test_example_items1 test_class_and_functions_discovery_using_glob
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
670
test_check_collect_hashes
def
function
def test_check_collect_hashes(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ def test_1(): pass def test_2(): pass """ ) shutil.copy(p, p.parent / (p.stem + "2" + ".py")) items, reprec = pyt...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
671
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
681
inline_genitems
ref
function
items, reprec = pytester.inline_genitems(p.parent)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
689
test_example_items1
def
function
def test_example_items1(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ import pytest def testone(): pass class TestX(object): def testmethod_one(self): pass class TestY(TestX):...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
690
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
707
inline_genitems
ref
function
items, reprec = pytester.inline_genitems(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
715
getmodpath
ref
function
assert items[0].getmodpath() == "testone" # type: ignore[attr-defined]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
716
getmodpath
ref
function
assert items[1].getmodpath() == "TestX.testmethod_one" # type: ignore[attr-defined]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
717
getmodpath
ref
function
assert items[2].getmodpath() == "TestY.testmethod_one" # type: ignore[attr-defined]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
719
getmodpath
ref
function
assert items[3].getmodpath() == "TestY.testmethod_two[.[]" # type: ignore[attr-defined]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
721
getmodpath
ref
function
s = items[0].getmodpath(stopatmodule=False) # type: ignore[attr-defined]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_collection.py
testing/test_collection.py
725
test_class_and_functions_discovery_using_glob
def
class