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
462
test_parametrize_overrides_indirect_dependency_fixture
def
function
def test_parametrize_overrides_indirect_dependency_fixture( self, pytester: Pytester ) -> None: """Test parametrization when parameter overrides a fixture that a test indirectly depends on""" pytester.makepyfile( """ import pytest fix3_instantiated = ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
466
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
492
inline_run
ref
function
rec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
493
assertoutcome
ref
function
rec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
495
test_parametrize_with_mark
def
function
def test_parametrize_with_mark(self, pytester: Pytester) -> None: items = pytester.getitems( """ import pytest @pytest.mark.foo @pytest.mark.parametrize('arg', [ 1, pytest.param(2, marks=[pytest.mark.baz, pytest.mark.bar]) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
496
getitems
ref
function
items = pytester.getitems(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
516
test_parametrize_with_empty_string_arguments
def
function
def test_parametrize_with_empty_string_arguments(self, pytester: Pytester) -> None: items = pytester.getitems( """\ import pytest @pytest.mark.parametrize('v', ('', ' ')) @pytest.mark.parametrize('w', ('', ' ')) def test(v, w): ... """...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
517
getitems
ref
function
items = pytester.getitems(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
529
test_function_equality_with_callspec
def
function
def test_function_equality_with_callspec(self, pytester: Pytester) -> None: items = pytester.getitems( """ import pytest @pytest.mark.parametrize('arg', [1,2]) def test_function(arg): pass """ ) assert items[0] != items[...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
530
getitems
ref
function
items = pytester.getitems(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
541
test_pyfunc_call
def
function
def test_pyfunc_call(self, pytester: Pytester) -> None: item = pytester.getitem("def test_func(): raise ValueError") config = item.config class MyPlugin1: def pytest_pyfunc_call(self): raise ValueError class MyPlugin2: def pytest_pyfunc_call(...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
542
getitem
ref
function
item = pytester.getitem("def test_func(): raise ValueError")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
545
MyPlugin1
def
class
pytest_pyfunc_call
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
546
pytest_pyfunc_call
def
function
def pytest_pyfunc_call(self): raise ValueError class MyPlugin2: def pytest_pyfunc_call(self): return _True config.pluginmanager.register(MyPlugin1()) config.pluginmanager.register(MyPlugin2()) config.hook.pytest_runtest_setup(item...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
549
MyPlugin2
def
class
pytest_pyfunc_call
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
550
pytest_pyfunc_call
def
function
def pytest_pyfunc_call(self): raise ValueError class MyPlugin2: def pytest_pyfunc_call(self): return _True config.pluginmanager.register(MyPlugin1()) config.pluginmanager.register(MyPlugin2()) config.hook.pytest_runtest_setup(item...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
553
register
ref
function
config.pluginmanager.register(MyPlugin1())
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
553
MyPlugin1
ref
function
config.pluginmanager.register(MyPlugin1())
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
554
register
ref
function
config.pluginmanager.register(MyPlugin2())
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
554
MyPlugin2
ref
function
config.pluginmanager.register(MyPlugin2())
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
555
pytest_runtest_setup
ref
function
config.hook.pytest_runtest_setup(item=item)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
556
pytest_pyfunc_call
ref
function
config.hook.pytest_pyfunc_call(pyfuncitem=item)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
558
test_multiple_parametrize
def
function
def test_multiple_parametrize(self, pytester: Pytester) -> None: modcol = pytester.getmodulecol( """ import pytest @pytest.mark.parametrize('x', [0, 1]) @pytest.mark.parametrize('y', [2, 3]) def test1(x, y): pass """ ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
559
getmodulecol
ref
function
modcol = pytester.getmodulecol(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
568
collect
ref
function
colitems = modcol.collect()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
574
test_issue751_multiple_parametrize_with_ids
def
function
def test_issue751_multiple_parametrize_with_ids(self, pytester: Pytester) -> None: modcol = pytester.getmodulecol( """ import pytest @pytest.mark.parametrize('x', [0], ids=['c']) @pytest.mark.parametrize('y', [0, 1], ids=['a', 'b']) class Test(obje...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
575
getmodulecol
ref
function
modcol = pytester.getmodulecol(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
587
collect
ref
function
colitems = modcol.collect()[0].collect()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
587
collect
ref
function
colitems = modcol.collect()[0].collect()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
593
test_parametrize_skipif
def
function
def test_parametrize_skipif(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest m = pytest.mark.skipif('_True') @pytest.mark.parametrize('x', [0, 1, pytest.param(2, marks=m)]) def test_skip_if(x): assert x < ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
594
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
605
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
606
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 2 passed, 1 skipped in *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
608
test_parametrize_skip
def
function
def test_parametrize_skip(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest m = pytest.mark.skip('') @pytest.mark.parametrize('x', [0, 1, pytest.param(2, marks=m)]) def test_skip(x): assert x < 2 ""...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
609
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
620
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
621
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 2 passed, 1 skipped in *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
623
test_parametrize_skipif_no_skip
def
function
def test_parametrize_skipif_no_skip(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest m = pytest.mark.skipif('_False') @pytest.mark.parametrize('x', [0, 1, m(2)]) def test_skipif_no_skip(x): assert x < 2 ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
624
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
635
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
636
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 1 failed, 2 passed in *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
638
test_parametrize_xfail
def
function
def test_parametrize_xfail(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest m = pytest.mark.xfail('_True') @pytest.mark.parametrize('x', [0, 1, pytest.param(2, marks=m)]) def test_xfail(x): assert x < 2 ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
639
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
650
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
651
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 2 passed, 1 xfailed in *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
653
test_parametrize_passed
def
function
def test_parametrize_passed(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest m = pytest.mark.xfail('_True') @pytest.mark.parametrize('x', [0, 1, pytest.param(2, marks=m)]) def test_xfail(x): pass "...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
654
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
665
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
666
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 2 passed, 1 xpassed in *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
668
test_parametrize_xfail_passed
def
function
def test_parametrize_xfail_passed(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest m = pytest.mark.xfail('_False') @pytest.mark.parametrize('x', [0, 1, m(2)]) def test_passed(x): pass """ )...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
669
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
680
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
681
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 3 passed in *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
683
test_function_originalname
def
function
def test_function_originalname(self, pytester: Pytester) -> None: items = pytester.getitems( """ import pytest @pytest.mark.parametrize('arg', [1,2]) def test_func(arg): pass def test_no_param(): pass """ ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
684
getitems
ref
function
items = pytester.getitems(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
706
test_function_with_square_brackets
def
function
def test_function_with_square_brackets(self, pytester: Pytester) -> None: """Check that functions with square brackets don't cause trouble.""" p1 = pytester.makepyfile( """ locals()["test_foo[name]"] = lambda: None """ ) result = pytester.runpytest...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
708
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
713
runpytest
ref
function
result = pytester.runpytest("-v", str(p1))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
714
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
722
TestSorting
def
class
test_check_equality test_allow_sane_sorting_for_decorators test_ordered_by_definition_order
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
723
test_check_equality
def
function
def test_check_equality(self, pytester: Pytester) -> None: modcol = pytester.getmodulecol( """ def test_pass(): pass def test_fail(): assert 0 """ ) fn1 = pytester.collect_by_name(modcol, "test_pass") assert isinstance(fn1, pytest.Function)...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
724
getmodulecol
ref
function
modcol = pytester.getmodulecol(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
730
collect_by_name
ref
function
fn1 = pytester.collect_by_name(modcol, "test_pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
732
collect_by_name
ref
function
fn2 = pytester.collect_by_name(modcol, "test_pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
739
collect_by_name
ref
function
fn3 = pytester.collect_by_name(modcol, "test_fail")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
751
test_allow_sane_sorting_for_decorators
def
function
def test_allow_sane_sorting_for_decorators(self, pytester: Pytester) -> None: modcol = pytester.getmodulecol( """ def dec(f): g = lambda: f(2) g.place_as = f return g def test_b(y): pass test_b ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
752
getmodulecol
ref
function
modcol = pytester.getmodulecol(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
769
collect
ref
function
colitems = modcol.collect()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
773
test_ordered_by_definition_order
def
function
def test_ordered_by_definition_order(self, pytester: Pytester) -> None: pytester.makepyfile( """\ class Test1: def test_foo(): pass def test_bar(): pass class Test2: def test_foo(): pass test_bar = Test1.test...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
774
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
786
runpytest
ref
function
result = pytester.runpytest("--collect-only")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
787
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
804
TestConftestCustomization
def
class
test_pytest_pycollect_module test_customized_pymakemodule_issue205_subdir test_customized_pymakeitem test_pytest_pycollect_makeitem test_issue2369_collect_module_fileext test_early_ignored_attributes
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
805
test_pytest_pycollect_module
def
function
def test_pytest_pycollect_module(self, pytester: Pytester) -> None: pytester.makeconftest( """ import pytest class MyModule(pytest.Module): pass def pytest_pycollect_makemodule(fspath, parent): if fspath.name == "test_xyz.py": ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
806
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
816
makepyfile
ref
function
pytester.makepyfile("def test_some(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
817
makepyfile
ref
function
pytester.makepyfile(test_xyz="def test_func(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
818
runpytest
ref
function
result = pytester.runpytest("--collect-only")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
819
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*<Module*test_pytest*", "*<MyModule*xyz*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
821
test_customized_pymakemodule_issue205_subdir
def
function
def test_customized_pymakemodule_issue205_subdir(self, pytester: Pytester) -> None: b = pytester.path.joinpath("a", "b") b.mkdir(parents=_True) b.joinpath("conftest.py").write_text( textwrap.dedent( """\ import pytest @pytest.hookim...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
822
joinpath
ref
function
b = pytester.path.joinpath("a", "b")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
824
joinpath
ref
function
b.joinpath("conftest.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
824
write_text
ref
function
b.joinpath("conftest.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
836
joinpath
ref
function
b.joinpath("test_module.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
836
write_text
ref
function
b.joinpath("test_module.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
844
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
845
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
847
test_customized_pymakeitem
def
function
def test_customized_pymakeitem(self, pytester: Pytester) -> None: b = pytester.path.joinpath("a", "b") b.mkdir(parents=_True) b.joinpath("conftest.py").write_text( textwrap.dedent( """\ import pytest @pytest.hookimpl(hookwrapper=_Tr...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
848
joinpath
ref
function
b = pytester.path.joinpath("a", "b")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
850
joinpath
ref
function
b.joinpath("conftest.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
850
write_text
ref
function
b.joinpath("conftest.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
865
joinpath
ref
function
b.joinpath("test_module.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
865
write_text
ref
function
b.joinpath("test_module.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
878
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
879
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
881
test_pytest_pycollect_makeitem
def
function
def test_pytest_pycollect_makeitem(self, pytester: Pytester) -> None: pytester.makeconftest( """ import pytest class MyFunction(pytest.Function): pass def pytest_pycollect_makeitem(collector, name, obj): if name == "some": ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
882
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
892
makepyfile
ref
function
pytester.makepyfile("def some(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
893
runpytest
ref
function
result = pytester.runpytest("--collect-only")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
894
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*MyFunction*some*"])