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
2,762
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,791
inline_run
ref
function
reprec = pytester.inline_run("-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,792
assertoutcome
ref
function
reprec.assertoutcome(passed=12)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,793
getcalls
ref
function
values = reprec.getcalls("pytest_runtest_call")[0].item.module.values
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,837
test_parametrized_fixture_teardown_order
def
function
def test_parametrized_fixture_teardown_order(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.fixture(params=[1,2], scope="class") def param1(request): return request.param values = [] ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,838
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,870
runpytest
ref
function
result = pytester.runpytest("-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,871
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,876
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*error*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,878
test_fixture_finalizer
def
function
def test_fixture_finalizer(self, pytester: Pytester) -> None: pytester.makeconftest( """ import pytest import sys @pytest.fixture def browser(request): def finalize(): sys.stdout.write_text('Finalized') ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,879
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,908
runpytest
ref
function
reprec = pytester.runpytest("-s")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,910
fnmatch_lines
ref
function
reprec.stdout.fnmatch_lines(["*Finalized*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,912
test_class_scope_with_normal_tests
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,913
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,936
inline_run
ref
function
reprec = pytester.inline_run(testpath)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,938
matchreport
ref
function
assert reprec.matchreport(test).passed
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,940
test_request_is_clean
def
function
def test_request_is_clean(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest values = [] @pytest.fixture(params=[1, 2]) def fix(request): request.addfinalizer(lambda: values.append(request.param)) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,941
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,952
inline_run
ref
function
reprec = pytester.inline_run("-s")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,953
getcalls
ref
function
values = reprec.getcalls("pytest_runtest_call")[0].item.module.values
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,956
test_parametrize_separated_lifecycle
def
function
def test_parametrize_separated_lifecycle(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest values = [] @pytest.fixture(scope="module", params=[1, 2]) def arg(request): x = request.param reque...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,957
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,973
inline_run
ref
function
reprec = pytester.inline_run("-vs")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,974
assertoutcome
ref
function
reprec.assertoutcome(passed=4)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,975
getcalls
ref
function
values = reprec.getcalls("pytest_runtest_call")[0].item.module.values
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,985
test_parametrize_function_scoped_finalizers_called
def
function
def test_parametrize_function_scoped_finalizers_called( self, pytester: Pytester ) -> None: pytester.makepyfile( """ import pytest @pytest.fixture(scope="function", params=[1, 2]) def arg(request): x = request.param ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
2,988
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,008
inline_run
ref
function
reprec = pytester.inline_run("-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,009
assertoutcome
ref
function
reprec.assertoutcome(passed=5)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,011
parametrize
ref
function
@pytest.mark.parametrize("scope", ["session", "function", "module"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,012
test_finalizer_order_on_parametrization
def
function
def test_finalizer_order_on_parametrization( self, scope, pytester: Pytester ) -> None: """#246""" pytester.makepyfile( """ import pytest values = [] @pytest.fixture(scope=%(scope)r, params=["1"]) def fix1(request): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,016
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,047
inline_run
ref
function
reprec = pytester.inline_run("-lvs")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,048
assertoutcome
ref
function
reprec.assertoutcome(passed=3)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,050
test_class_scope_parametrization_ordering
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,052
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,073
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,074
assertoutcome
ref
function
reprec.assertoutcome(passed=6)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,075
getcalls
ref
function
values = reprec.getcalls("pytest_runtest_call")[0].item.module.values
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,089
test_parametrize_setup_function
def
function
def test_parametrize_setup_function(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.fixture(scope="module", params=[1, 2]) def arg(request): return request.param @pytest.fixture(scope="module", au...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,090
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,119
inline_run
ref
function
reprec = pytester.inline_run("-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,120
assertoutcome
ref
function
reprec.assertoutcome(passed=6)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,122
test_fixture_marked_function_not_collected_as_test
def
function
def test_fixture_marked_function_not_collected_as_test( self, pytester: Pytester ) -> None: pytester.makepyfile( """ import pytest @pytest.fixture def test_app(): return 1 def test_something(test_app): a...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,125
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,136
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,137
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,139
test_params_and_ids
def
function
def test_params_and_ids(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.fixture(params=[object(), object()], ids=['alpha', 'beta']) def fix(request): return request.param ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,140
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,153
runpytest
ref
function
res = pytester.runpytest("-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,154
fnmatch_lines
ref
function
res.stdout.fnmatch_lines(["*test_foo*alpha*", "*test_foo*beta*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,156
test_params_and_ids_yieldfixture
def
function
def test_params_and_ids_yieldfixture(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.fixture(params=[object(), object()], ids=['alpha', 'beta']) def fix(request): yield request.param def test_foo...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,157
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,169
runpytest
ref
function
res = pytester.runpytest("-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,170
fnmatch_lines
ref
function
res.stdout.fnmatch_lines(["*test_foo*alpha*", "*test_foo*beta*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,172
test_deterministic_fixture_collection
def
function
def test_deterministic_fixture_collection( self, pytester: Pytester, monkeypatch ) -> None: """#920""" pytester.makepyfile( """ import pytest @pytest.fixture(scope="module", params=["A", ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,176
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,200
setenv
ref
function
monkeypatch.setenv("PYTHONHASHSEED", "1")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,201
runpytest_subprocess
ref
function
out1 = pytester.runpytest_subprocess("-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,202
setenv
ref
function
monkeypatch.setenv("PYTHONHASHSEED", "2")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,203
runpytest_subprocess
ref
function
out2 = pytester.runpytest_subprocess("-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,218
TestRequestScopeAccess
def
class
test_setup test_funcarg
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,219
parametrize
ref
function
pytestmark = pytest.mark.parametrize(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,229
test_setup
def
function
def test_setup(self, pytester: Pytester, scope, ok, error) -> None: pytester.makepyfile( """ import pytest @pytest.fixture(scope=%r, autouse=_True) def myscoped(request): for x in %r: assert hasattr(request, x) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,230
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,247
inline_run
ref
function
reprec = pytester.inline_run("-l")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,248
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,250
test_funcarg
def
function
def test_funcarg(self, pytester: Pytester, scope, ok, error) -> None: pytester.makepyfile( """ import pytest @pytest.fixture(scope=%r) def arg(request): for x in %r: assert hasattr(request, x) for x in %r: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,251
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,268
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,269
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,272
TestErrors
def
class
test_subfactory_missing_funcarg test_issue498_fixture_finalizer_failing test_setupfunc_missing_funcarg
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,273
test_subfactory_missing_funcarg
def
function
def test_subfactory_missing_funcarg(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.fixture() def gen(qwe123): return 1 def test_something(gen): pass """ ) re...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,274
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,284
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,286
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,290
test_issue498_fixture_finalizer_failing
def
function
def test_issue498_fixture_finalizer_failing(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.fixture def fix1(request): def f(): raise KeyError request.addfinalizer(f) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,291
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,310
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,311
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,321
test_setupfunc_missing_funcarg
def
function
def test_setupfunc_missing_funcarg(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.fixture(autouse=_True) def gen(qwe123): return 1 def test_something(): pass """ ) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,322
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,332
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,334
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,339
TestShowFixtures
def
class
test_funcarg_compat test_show_fixtures test_show_fixtures_verbose test_show_fixtures_testmodule test_show_fixtures_conftest test_show_fixtures_trimmed_doc test_show_fixtures_indented_doc test_show_fixtures_indented_doc_first_line_unindented test_show_fixtures_indented_in_class test_show_fixtures_different_files test_sh...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,340
test_funcarg_compat
def
function
def test_funcarg_compat(self, pytester: Pytester) -> None: config = pytester.parseconfigure("--funcargs") assert config.option.showfixtures def test_show_fixtures(self, pytester: Pytester) -> None: result = pytester.runpytest("--fixtures") result.stdout.fnmatch_lines( ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,341
parseconfigure
ref
function
config = pytester.parseconfigure("--funcargs")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,344
test_show_fixtures
def
function
def test_show_fixtures(self, pytester: Pytester) -> None: result = pytester.runpytest("--fixtures") result.stdout.fnmatch_lines( [ "tmp_path_factory [[]session scope[]] -- .../_pytest/tmpdir.py:*", "*for the test session*", "tmp_path -- ......
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,345
runpytest
ref
function
result = pytester.runpytest("--fixtures")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,346
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,355
test_show_fixtures_verbose
def
function
def test_show_fixtures_verbose(self, pytester: Pytester) -> None: result = pytester.runpytest("--fixtures", "-v") result.stdout.fnmatch_lines( [ "tmp_path_factory [[]session scope[]] -- .../_pytest/tmpdir.py:*", "*for the test session*", "t...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,356
runpytest
ref
function
result = pytester.runpytest("--fixtures", "-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,357
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,366
test_show_fixtures_testmodule
def
function
def test_show_fixtures_testmodule(self, pytester: Pytester) -> None: p = pytester.makepyfile( ''' import pytest @pytest.fixture def _arg0(): """ hidden """ @pytest.fixture def arg1(): """ hello world """...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,367
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,378
runpytest
ref
function
result = pytester.runpytest("--fixtures", p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,379
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,387
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*arg0*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py
testing/python/fixtures.py
3,389
parametrize
ref
function
@pytest.mark.parametrize("testmod", [True, False])