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/fixtures.py
testing/python/fixtures.py
494
test_override_top_level_fixture_reusing_super_fixture_parametrization
def
function
def test_override_top_level_fixture_reusing_super_fixture_parametrization( self, pytester: Pytester ) -> None: """Same as the above test, but with another level of overwriting.""" pytester.makeconftest( """ import pytest @pytest.fixture(params=['unuse...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
498
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
507
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
525
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
526
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*2 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
528
test_override_parametrized_fixture_with_new_parametrized_fixture
def
function
def test_override_parametrized_fixture_with_new_parametrized_fixture( self, pytester: Pytester ) -> None: """Overriding a parametrized fixture, while also parametrizing the new fixture and simultaneously requesting the overwritten fixture as parameter, yields the same value as ``...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
535
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
544
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
557
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
558
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*2 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
560
test_autouse_fixture_plugin
def
function
def test_autouse_fixture_plugin(self, pytester: Pytester) -> None: # A fixture from a plugin has no baseid set, which screwed up # the autouse fixture handling. pytester.makepyfile( testplugin=""" import pytest @pytest.fixture(autouse=_True) d...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
563
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
572
syspathinsert
ref
function
pytester.syspathinsert()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
573
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
581
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
584
test_funcarg_lookup_error
def
function
def test_funcarg_lookup_error(self, pytester: Pytester) -> None: pytester.makeconftest( """ import pytest @pytest.fixture def a_fixture(): pass @pytest.fixture def b_fixture(): pass @pytest.fixture def c_fixtu...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
585
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
602
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
608
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
609
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
620
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*INTERNAL*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
622
test_fixture_excinfo_leak
def
function
def test_fixture_excinfo_leak(self, pytester: Pytester) -> None: # on python2 sys.excinfo would leak into fixture executions pytester.makepyfile( """ import sys import traceback import pytest @pytest.fixture def leak(): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
624
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
643
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
647
TestRequestBasic
def
class
test_request_attributes test_request_attributes_method test_request_contains_funcarg_arg2fixturedefs test_request_garbage test_getfixturevalue_recursive test_getfixturevalue_teardown test_getfixturevalue test_request_addfinalizer test_request_addfinalizer_failing_setup test_request_addfinalizer_failing_setup_module tes...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
648
test_request_attributes
def
function
def test_request_attributes(self, pytester: Pytester) -> None: item = pytester.getitem( """ import pytest @pytest.fixture def something(request): pass def test_func(something): pass """ ) assert isinstance(item, Function) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
649
getitem
ref
function
item = pytester.getitem(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
659
FixtureRequest
ref
function
req = fixtures.FixtureRequest(item, _ispytest=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
668
test_request_attributes_method
def
function
def test_request_attributes_method(self, pytester: Pytester) -> None: (item,) = pytester.getitems( """ import pytest class TestB(object): @pytest.fixture def something(self, request): return 1 def test_f...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
669
getitems
ref
function
(item,) = pytester.getitems(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
686
test_request_contains_funcarg_arg2fixturedefs
def
function
def test_request_contains_funcarg_arg2fixturedefs(self, pytester: Pytester) -> None: modcol = pytester.getmodulecol( """ import pytest @pytest.fixture def something(request): pass class TestClass(object): def test_me...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
687
getmodulecol
ref
function
modcol = pytester.getmodulecol(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
698
genitems
ref
function
(item1,) = pytester.genitems([modcol])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
700
FixtureRequest
ref
function
arg2fixturedefs = fixtures.FixtureRequest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
706
skipif
ref
function
@pytest.mark.skipif(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
710
test_request_garbage
def
function
def test_request_garbage(self, pytester: Pytester) -> None: try: import xdist # noqa except ImportError: pass else: pytest.xfail("this test is flaky when executed with xdist") pytester.makepyfile( """ import sys ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
716
xfail
ref
function
pytest.xfail("this test is flaky when executed with xdist")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
717
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
743
runpytest_subprocess
ref
function
result = pytester.runpytest_subprocess()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
744
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 1 passed in *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
746
test_getfixturevalue_recursive
def
function
def test_getfixturevalue_recursive(self, pytester: Pytester) -> None: pytester.makeconftest( """ import pytest @pytest.fixture def something(request): return 1 """ ) pytester.makepyfile( """ impo...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
747
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
756
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
767
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
768
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
770
test_getfixturevalue_teardown
def
function
def test_getfixturevalue_teardown(self, pytester: Pytester) -> None: """ Issue #1895 `test_inner` requests `inner` fixture, which in turn requests `resource` using `getfixturevalue`. `test_func` then requests `resource`. `resource` is teardown before `inner` because the fix...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
781
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
805
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
806
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 2 passed in *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
808
test_getfixturevalue
def
function
def test_getfixturevalue(self, pytester: Pytester) -> None: item = pytester.getitem( """ import pytest @pytest.fixture def something(request): return 1 values = [2] @pytest.fixture def other(request): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
809
getitem
ref
function
item = pytester.getitem(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
829
setup
ref
function
item.session._setupstate.setup(item)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
831
raises
ref
function
with pytest.raises(pytest.FixtureLookupError):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
832
getfixturevalue
ref
function
req.getfixturevalue("notexists")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
833
getfixturevalue
ref
function
val = req.getfixturevalue("something")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
835
getfixturevalue
ref
function
val = req.getfixturevalue("something")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
837
getfixturevalue
ref
function
val2 = req.getfixturevalue("other")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
839
getfixturevalue
ref
function
val2 = req.getfixturevalue("other") # see about caching
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
842
get_public_names
ref
function
assert len(get_public_names(item.funcargs)) == 2
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
845
test_request_addfinalizer
def
function
def test_request_addfinalizer(self, pytester: Pytester) -> None: item = pytester.getitem( """ import pytest teardownlist = [] @pytest.fixture def something(request): request.addfinalizer(lambda: teardownlist.append(1)) d...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
846
getitem
ref
function
item = pytester.getitem(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
857
setup
ref
function
item.session._setupstate.setup(item)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
858
_fillfixtures
ref
function
item._request._fillfixtures()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
860
getparent
ref
function
parent = item.getparent(pytest.Module)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
865
teardown_exact
ref
function
ss.teardown_exact(None)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
869
test_request_addfinalizer_failing_setup
def
function
def test_request_addfinalizer_failing_setup(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest values = [1] @pytest.fixture def myfix(request): request.addfinalizer(values.pop) assert 0 ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
870
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
884
inline_run
ref
function
reprec = pytester.inline_run("-s")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
885
assertoutcome
ref
function
reprec.assertoutcome(failed=1, passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
887
test_request_addfinalizer_failing_setup_module
def
function
def test_request_addfinalizer_failing_setup_module( self, pytester: Pytester ) -> None: pytester.makepyfile( """ import pytest values = [1, 2] @pytest.fixture(scope="module") def myfix(request): request.addfinalizer(valu...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
890
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
903
inline_run
ref
function
reprec = pytester.inline_run("-s")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
904
getcalls
ref
function
mod = reprec.getcalls("pytest_runtest_setup")[0].item.module
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
907
test_request_addfinalizer_partial_setup_failure
def
function
def test_request_addfinalizer_partial_setup_failure( self, pytester: Pytester ) -> None: p = pytester.makepyfile( """ import pytest values = [] @pytest.fixture def something(request): request.addfinalizer(lambda: values....
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
910
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
923
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
924
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
928
test_request_subrequest_addfinalizer_exceptions
def
function
def test_request_subrequest_addfinalizer_exceptions( self, pytester: Pytester ) -> None: """ Ensure exceptions raised during teardown by a finalizer are suppressed until all finalizers are called, re-raising the first exception (#2440) """ pytester.makepyfile( ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
935
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
959
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
960
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
964
test_request_getmodulepath
def
function
def test_request_getmodulepath(self, pytester: Pytester) -> None: modcol = pytester.getmodulecol("def test_somefunc(): pass") (item,) = pytester.genitems([modcol]) req = fixtures.FixtureRequest(item, _ispytest=_True) assert req.path == modcol.path def test_request_fixturenames(s...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
965
getmodulecol
ref
function
modcol = pytester.getmodulecol("def test_somefunc(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
966
genitems
ref
function
(item,) = pytester.genitems([modcol])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
967
FixtureRequest
ref
function
req = fixtures.FixtureRequest(item, _ispytest=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
970
test_request_fixturenames
def
function
def test_request_fixturenames(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest from _pytest.pytester import get_public_names @pytest.fixture() def arg1(): pass @pytest.fixture() def f...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
971
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
990
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
991
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
993
test_request_fixturenames_dynamic_fixture
def
function
def test_request_fixturenames_dynamic_fixture(self, pytester: Pytester) -> None: """Regression test for #3057""" pytester.copy_example("fixtures/test_getfixturevalue_dynamic.py") result = pytester.runpytest() result.stdout.fnmatch_lines(["*1 passed*"]) def test_setupdecorator_an...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
995
copy_example
ref
function
pytester.copy_example("fixtures/test_getfixturevalue_dynamic.py")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
996
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
997
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*1 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
999
test_setupdecorator_and_xunit
def
function
def test_setupdecorator_and_xunit(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest values = [] @pytest.fixture(scope='module', autouse=_True) def setup_module(): values.append("module") @pytest.f...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
1,000
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
1,028
inline_run
ref
function
reprec = pytester.inline_run("-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
1,029
assertoutcome
ref
function
reprec.assertoutcome(passed=3)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
1,031
test_fixtures_sub_subdir_normalize_sep
def
function
def test_fixtures_sub_subdir_normalize_sep(self, pytester: Pytester) -> None: # this tests that normalization of nodeids takes place b = pytester.path.joinpath("tests", "unit") b.mkdir(parents=_True) b.joinpath("conftest.py").write_text( textwrap.dedent( "...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
1,047
runpytest
ref
function
result = pytester.runpytest(p, "--fixtures")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
1,049
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(