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/metafunc.py
testing/python/metafunc.py
1,094
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,106
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,107
assert_outcomes
ref
function
result.assert_outcomes(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,109
test_parametrize_functional2
def
function
def test_parametrize_functional2(self, pytester: Pytester) -> None: pytester.makepyfile( """ def pytest_generate_tests(metafunc): metafunc.parametrize("arg1", [1,2]) metafunc.parametrize("arg2", [4,5]) def test_hello(arg1, arg2): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,110
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,119
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,120
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,124
test_parametrize_and_inner_getfixturevalue
def
function
def test_parametrize_and_inner_getfixturevalue(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ def pytest_generate_tests(metafunc): metafunc.parametrize("arg1", [1], indirect=_True) metafunc.parametrize("arg2", [10], indirect=_True) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,125
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,145
runpytest
ref
function
result = pytester.runpytest("-v", p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,146
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*test_func1*1*PASS*", "*1 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,148
test_parametrize_on_setup_arg
def
function
def test_parametrize_on_setup_arg(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ def pytest_generate_tests(metafunc): assert "arg1" in metafunc.fixturenames metafunc.parametrize("arg1", [1], indirect=_True) import pytest ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,149
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,168
runpytest
ref
function
result = pytester.runpytest("-v", p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,169
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*test_func*1*PASS*", "*1 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,171
test_parametrize_with_ids
def
function
def test_parametrize_with_ids(self, pytester: Pytester) -> None: pytester.makeini( """ [pytest] console_output_style=classic """ ) pytester.makepyfile( """ import pytest def pytest_generate_tests(metafunc): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,172
makeini
ref
function
pytester.makeini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,178
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,189
runpytest
ref
function
result = pytester.runpytest("-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,191
fnmatch_lines_random
ref
function
result.stdout.fnmatch_lines_random(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,195
test_parametrize_without_ids
def
function
def test_parametrize_without_ids(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest def pytest_generate_tests(metafunc): metafunc.parametrize(("a", "b"), [(1,object()), (1.3,object())]) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,196
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,207
runpytest
ref
function
result = pytester.runpytest("-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,208
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,215
test_parametrize_with_None_in_ids
def
function
def test_parametrize_with_None_in_ids(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest def pytest_generate_tests(metafunc): metafunc.parametrize(("a", "b"), [(1,1), (1,1), (1,2)], ids=["basic", ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,216
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,227
runpytest
ref
function
result = pytester.runpytest("-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,229
fnmatch_lines_random
ref
function
result.stdout.fnmatch_lines_random(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,237
test_fixture_parametrized_empty_ids
def
function
def test_fixture_parametrized_empty_ids(self, pytester: Pytester) -> None: """Fixtures parametrized with empty ids cause an internal error (#1849).""" pytester.makepyfile( """ import pytest @pytest.fixture(scope="module", ids=[], params=[]) def temp(r...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,239
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,251
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,252
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 1 skipped *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,254
test_parametrized_empty_ids
def
function
def test_parametrized_empty_ids(self, pytester: Pytester) -> None: """Tests parametrized with empty ids cause an internal error (#1849).""" pytester.makepyfile( """ import pytest @pytest.mark.parametrize('temp', [], ids=list()) def test_temp(temp): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,256
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,265
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,266
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 1 skipped *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,268
test_parametrized_ids_invalid_type
def
function
def test_parametrized_ids_invalid_type(self, pytester: Pytester) -> None: """Test error with non-strings/non-ints, without generator (#1857).""" pytester.makepyfile( """ import pytest @pytest.mark.parametrize("x, expected", [(1, 2), (3, 4), (5, 6)], ids=(None, 2,...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,270
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,279
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,280
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,287
test_parametrize_with_identical_ids_get_unique_names
def
function
def test_parametrize_with_identical_ids_get_unique_names( self, pytester: Pytester ) -> None: pytester.makepyfile( """ import pytest def pytest_generate_tests(metafunc): metafunc.parametrize(("a", "b"), [(1,1), (1,2)], ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,290
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,301
runpytest
ref
function
result = pytester.runpytest("-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,303
fnmatch_lines_random
ref
function
result.stdout.fnmatch_lines_random(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,307
parametrize
ref
function
@pytest.mark.parametrize(("scope", "length"), [("module", 2), ("function", 4)])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,308
test_parametrize_scope_overrides
def
function
def test_parametrize_scope_overrides( self, pytester: Pytester, scope: str, length: int ) -> None: pytester.makepyfile( """ import pytest values = [] def pytest_generate_tests(metafunc): if "arg" in metafunc.fixturenames: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,311
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,332
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,333
assertoutcome
ref
function
reprec.assertoutcome(passed=5)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,335
test_parametrize_issue323
def
function
def test_parametrize_issue323(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.fixture(scope='module', params=range(966)) def foo(request): return request.param def test_it(foo): pa...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,336
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,350
inline_run
ref
function
reprec = pytester.inline_run("--collect-only")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,351
getcalls
ref
function
assert not reprec.getcalls("pytest_internalerror")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,353
test_usefixtures_seen_in_generate_tests
def
function
def test_usefixtures_seen_in_generate_tests(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest def pytest_generate_tests(metafunc): assert "abc" in metafunc.fixturenames metafunc.parametrize("abc", [1]) @...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,354
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,366
runpytest
ref
function
reprec = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,367
assert_outcomes
ref
function
reprec.assert_outcomes(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,369
test_generate_tests_only_done_in_subdir
def
function
def test_generate_tests_only_done_in_subdir(self, pytester: Pytester) -> None: sub1 = pytester.mkpydir("sub1") sub2 = pytester.mkpydir("sub2") sub1.joinpath("conftest.py").write_text( textwrap.dedent( """\ def pytest_generate_tests(metafunc): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,370
mkpydir
ref
function
sub1 = pytester.mkpydir("sub1")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,371
mkpydir
ref
function
sub2 = pytester.mkpydir("sub2")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,372
joinpath
ref
function
sub1.joinpath("conftest.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,372
write_text
ref
function
sub1.joinpath("conftest.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,380
joinpath
ref
function
sub2.joinpath("conftest.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,380
write_text
ref
function
sub2.joinpath("conftest.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,388
joinpath
ref
function
sub1.joinpath("test_in_sub1.py").write_text("def test_1(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,388
write_text
ref
function
sub1.joinpath("test_in_sub1.py").write_text("def test_1(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,389
joinpath
ref
function
sub2.joinpath("test_in_sub2.py").write_text("def test_2(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,389
write_text
ref
function
sub2.joinpath("test_in_sub2.py").write_text("def test_2(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,390
runpytest
ref
function
result = pytester.runpytest("--keep-duplicates", "-v", "-s", sub1, sub2, sub1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,391
assert_outcomes
ref
function
result.assert_outcomes(passed=3)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,393
test_generate_same_function_names_issue403
def
function
def test_generate_same_function_names_issue403(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest def make_tests(): @pytest.mark.parametrize("x", range(2)) def test_foo(x): pass re...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,394
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,408
runpytest
ref
function
reprec = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,409
assert_outcomes
ref
function
reprec.assert_outcomes(passed=4)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,411
test_parametrize_misspelling
def
function
def test_parametrize_misspelling(self, pytester: Pytester) -> None: """#463""" pytester.makepyfile( """ import pytest @pytest.mark.parametrise("x", range(2)) def test_foo(x): pass """ ) result = pytester.runpyte...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,413
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,422
runpytest
ref
function
result = pytester.runpytest("--collectonly")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,423
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,438
TestMetafuncFunctionalAuto
def
class
test_parametrize_auto_scope test_parametrize_auto_scope_indirect test_parametrize_auto_scope_override_fixture test_parametrize_all_indirects test_parametrize_some_arguments_auto_scope test_parametrize_issue634
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,442
test_parametrize_auto_scope
def
function
def test_parametrize_auto_scope(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.fixture(scope='session', autouse=_True) def fixture(): return 1 @pytest.mark.parametrize('animal', ["dog", "cat"]) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,443
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,461
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,462
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 3 passed *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,464
test_parametrize_auto_scope_indirect
def
function
def test_parametrize_auto_scope_indirect(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.fixture(scope='session') def echo(request): return request.param @pytest.mark.parametrize('animal, echo', [...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,465
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,484
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,485
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 3 passed *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,487
test_parametrize_auto_scope_override_fixture
def
function
def test_parametrize_auto_scope_override_fixture(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.fixture(scope='session', autouse=_True) def animal(): return 'fox' @pytest.mark.parametrize('animal...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,488
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,501
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,502
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 2 passed *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,504
test_parametrize_all_indirects
def
function
def test_parametrize_all_indirects(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.fixture() def animal(request): return request.param @pytest.fixture(scope='session') def echo(request...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,505
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,528
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,529
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 3 passed *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,531
test_parametrize_some_arguments_auto_scope
def
function
def test_parametrize_some_arguments_auto_scope( self, pytester: Pytester, monkeypatch ) -> None: """Integration test for (#3941)""" class_fix_setup: List[object] = [] monkeypatch.setattr(sys, "class_fix_setup", class_fix_setup, raising=_False) func_fix_setup: List[object]...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,540
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,561
runpytest_inprocess
ref
function
result = pytester.runpytest_inprocess()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,562
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 4 passed in *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
1,566
test_parametrize_issue634
def
function
def test_parametrize_issue634(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.fixture(scope='module') def foo(request): print('preparing foo-%d' % request.param) return 'foo-%d' % request.param...