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_skipping.py
testing/test_skipping.py
1,423
test_importorskip
def
function
def test_importorskip() -> None: with pytest.raises( pytest.skip.Exception, match="^could not import 'doesnotexist': No module named .*", ): pytest.importorskip("doesnotexist")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,424
raises
ref
function
with pytest.raises(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,428
importorskip
ref
function
pytest.importorskip("doesnotexist")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,431
test_relpath_rootdir
def
function
def test_relpath_rootdir(pytester: Pytester) -> None: pytester.makepyfile( **{ "tests/test_1.py": """ import pytest @pytest.mark.skip() def test_pass(): pass """, } ) result = pytester.runpytest("-rs", "tests/test_1.py", "--rootdir=...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,432
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,442
runpytest
ref
function
result = pytester.runpytest("-rs", "tests/test_1.py", "--rootdir=tests")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,443
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,448
test_skip_using_reason_works_ok
def
function
def test_skip_using_reason_works_ok(pytester: Pytester) -> None: p = pytester.makepyfile( """ import pytest def test_skipping_reason(): pytest.skip(reason="skippedreason") """ ) result = pytester.runpytest(p) result.stdout.no_fnmatch_line("*PytestDeprecationW...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,449
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,457
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,458
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*PytestDeprecationWarning*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,459
assert_outcomes
ref
function
result.assert_outcomes(skipped=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,462
test_fail_using_reason_works_ok
def
function
def test_fail_using_reason_works_ok(pytester: Pytester) -> None: p = pytester.makepyfile( """ import pytest def test_failing_reason(): pytest.fail(reason="failedreason") """ ) result = pytester.runpytest(p) result.stdout.no_fnmatch_line("*PytestDeprecationWar...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,463
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,471
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,472
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*PytestDeprecationWarning*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,473
assert_outcomes
ref
function
result.assert_outcomes(failed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,476
test_fail_fails_with_msg_and_reason
def
function
def test_fail_fails_with_msg_and_reason(pytester: Pytester) -> None: p = pytester.makepyfile( """ import pytest def test_fail_both_arguments(): pytest.fail(reason="foo", msg="bar") """ ) result = pytester.runpytest(p) result.stdout.fnmatch_lines( "*Us...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,477
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,485
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,486
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,489
assert_outcomes
ref
function
result.assert_outcomes(failed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,492
test_skip_fails_with_msg_and_reason
def
function
def test_skip_fails_with_msg_and_reason(pytester: Pytester) -> None: p = pytester.makepyfile( """ import pytest def test_skip_both_arguments(): pytest.skip(reason="foo", msg="bar") """ ) result = pytester.runpytest(p) result.stdout.fnmatch_lines( "*Us...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,493
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,501
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,502
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,505
assert_outcomes
ref
function
result.assert_outcomes(failed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,508
test_exit_with_msg_and_reason_fails
def
function
def test_exit_with_msg_and_reason_fails(pytester: Pytester) -> None: p = pytester.makepyfile( """ import pytest def test_exit_both_arguments(): pytest.exit(reason="foo", msg="bar") """ ) result = pytester.runpytest(p) result.stdout.fnmatch_lines( "*Us...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,509
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,517
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,518
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,521
assert_outcomes
ref
function
result.assert_outcomes(failed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,524
test_exit_with_reason_works_ok
def
function
def test_exit_with_reason_works_ok(pytester: Pytester) -> None: p = pytester.makepyfile( """ import pytest def test_exit_reason_only(): pytest.exit(reason="foo") """ ) result = pytester.runpytest(p) result.stdout.fnmatch_lines("*_pytest.outcomes.Exit: foo*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,525
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,533
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,534
fnmatch_lines
ref
function
result.stdout.fnmatch_lines("*_pytest.outcomes.Exit: foo*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stash.py
testing/test_stash.py
5
test_stash
def
function
def test_stash() -> None: stash = Stash() assert len(stash) == 0 assert not stash key1 = StashKey[str]() key2 = StashKey[int]() # Basic functionality - single key. assert key1 not in stash stash[key1] = "hello" assert key1 in stash assert stash[key1] == "hello" assert stas...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stash.py
testing/test_stash.py
6
Stash
ref
function
stash = Stash()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stash.py
testing/test_stash.py
30
raises
ref
function
with pytest.raises(KeyError):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stash.py
testing/test_stash.py
32
raises
ref
function
with pytest.raises(KeyError):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stash.py
testing/test_stash.py
39
raises
ref
function
with pytest.raises(KeyError):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stash.py
testing/test_stash.py
41
raises
ref
function
with pytest.raises(KeyError):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stash.py
testing/test_stash.py
55
raises
ref
function
with pytest.raises(AttributeError):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stash.py
testing/test_stash.py
59
Stash
ref
function
stash2 = Stash()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
6
stepwise_pytester
def
function
def stepwise_pytester(pytester: Pytester) -> Pytester: # Rather than having to modify our testfile between tests, we introduce # a flag for whether or not the second test should fail. pytester.makeconftest( """
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
9
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
19
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
38
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
46
makeini
ref
function
pytester.makeini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
57
error_pytester
def
function
def error_pytester(pytester: Pytester) -> Pytester: pytester.makepyfile( test_a="""
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
58
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
72
broken_pytester
def
function
def broken_pytester(pytester: Pytester) -> Pytester: pytester.makepyfile( working_testfile="def test_proper(): assert 1", broken_testfile="foobar" ) return pytester
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
73
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
79
_strip_resource_warnings
def
function
def _strip_resource_warnings(lines): # Strip unreliable ResourceWarnings, so no-output assertions on stderr can work. # (https://github.com/pytest-dev/pytest/issues/5088) return [ x for x in lines if not x.startswith(("Exception ignored in:", "ResourceWarning")) ]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
89
test_run_without_stepwise
def
function
def test_run_without_stepwise(stepwise_pytester: Pytester) -> None: result = stepwise_pytester.runpytest("-v", "--strict-markers", "--fail") result.stdout.fnmatch_lines(["*test_success_before_fail PASSED*"]) result.stdout.fnmatch_lines(["*test_fail_on_flag FAILED*"]) result.stdout.fnmatch_lines(["*test_...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
90
runpytest
ref
function
result = stepwise_pytester.runpytest("-v", "--strict-markers", "--fail")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
91
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*test_success_before_fail PASSED*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
92
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*test_fail_on_flag FAILED*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
93
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*test_success_after_fail PASSED*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
96
test_stepwise_output_summary
def
function
def test_stepwise_output_summary(pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.mark.parametrize("expected", [_True, _True, _True, _True, _False]) def test_data(expected): assert expected """ ) result = pytester.runpytest("-v",...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
97
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
105
runpytest
ref
function
result = pytester.runpytest("-v", "--stepwise")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
106
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["stepwise: no previously failed tests, not skipping."])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
107
runpytest
ref
function
result = pytester.runpytest("-v", "--stepwise")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
108
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
113
test_fail_and_continue_with_stepwise
def
function
def test_fail_and_continue_with_stepwise(stepwise_pytester: Pytester) -> None: # Run the tests with a failing second test. result = stepwise_pytester.runpytest( "-v", "--strict-markers", "--stepwise", "--fail" ) assert _strip_resource_warnings(result.stderr.lines) == [] stdout = result.stdo...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
115
runpytest
ref
function
result = stepwise_pytester.runpytest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
118
_strip_resource_warnings
ref
function
assert _strip_resource_warnings(result.stderr.lines) == []
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
127
runpytest
ref
function
result = stepwise_pytester.runpytest("-v", "--strict-markers", "--stepwise")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
128
_strip_resource_warnings
ref
function
assert _strip_resource_warnings(result.stderr.lines) == []
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
137
parametrize
ref
function
@pytest.mark.parametrize("stepwise_skip", ["--stepwise-skip", "--sw-skip"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
138
test_run_with_skip_option
def
function
def test_run_with_skip_option(stepwise_pytester: Pytester, stepwise_skip: str) -> None: result = stepwise_pytester.runpytest( "-v", "--strict-markers", "--stepwise", stepwise_skip, "--fail", "--fail-last", ) assert _strip_resource_warnings(result.stderr.lines)...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
139
runpytest
ref
function
result = stepwise_pytester.runpytest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
147
_strip_resource_warnings
ref
function
assert _strip_resource_warnings(result.stderr.lines) == []
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
157
test_fail_on_errors
def
function
def test_fail_on_errors(error_pytester: Pytester) -> None: result = error_pytester.runpytest("-v", "--strict-markers", "--stepwise") assert _strip_resource_warnings(result.stderr.lines) == [] stdout = result.stdout.str() assert "test_error ERROR" in stdout assert "test_success_after_fail" not in s...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
158
runpytest
ref
function
result = error_pytester.runpytest("-v", "--strict-markers", "--stepwise")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
160
_strip_resource_warnings
ref
function
assert _strip_resource_warnings(result.stderr.lines) == []
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
167
test_change_testfile
def
function
def test_change_testfile(stepwise_pytester: Pytester) -> None: result = stepwise_pytester.runpytest( "-v", "--strict-markers", "--stepwise", "--fail", "test_a.py" ) assert _strip_resource_warnings(result.stderr.lines) == [] stdout = result.stdout.str() assert "test_fail_on_flag FAILED" in s...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
168
runpytest
ref
function
result = stepwise_pytester.runpytest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
171
_strip_resource_warnings
ref
function
assert _strip_resource_warnings(result.stderr.lines) == []
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
178
runpytest
ref
function
result = stepwise_pytester.runpytest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
181
_strip_resource_warnings
ref
function
assert _strip_resource_warnings(result.stderr.lines) == []
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
187
parametrize
ref
function
@pytest.mark.parametrize("broken_first", [True, False])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
188
test_stop_on_collection_errors
def
function
def test_stop_on_collection_errors( broken_pytester: Pytester, broken_first: bool
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
196
runpytest
ref
function
result = broken_pytester.runpytest("-v", "--strict-markers", "--stepwise", *files)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
197
fnmatch_lines
ref
function
result.stdout.fnmatch_lines("*error during collection*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
200
test_xfail_handling
def
function
def test_xfail_handling(pytester: Pytester, monkeypatch: MonkeyPatch) -> None: """Ensure normal xfail is ignored, and strict xfail interrupts the session in sw mode (#5547) """ monkeypatch.setattr("sys.dont_write_bytecode", _True) contents = """ import pytest def test_a(): pass ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
217
makepyfile
ref
function
pytester.makepyfile(contents.format(assert_value="0", strict="False"))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
218
runpytest
ref
function
result = pytester.runpytest("--sw", "-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
219
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
229
makepyfile
ref
function
pytester.makepyfile(contents.format(assert_value="1", strict="True"))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
230
runpytest
ref
function
result = pytester.runpytest("--sw", "-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
231
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
240
makepyfile
ref
function
pytester.makepyfile(contents.format(assert_value="0", strict="True"))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
241
runpytest
ref
function
result = pytester.runpytest("--sw", "-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
242
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
252
test_stepwise_skip_is_independent
def
function
def test_stepwise_skip_is_independent(pytester: Pytester) -> None: pytester.makepyfile( """ def test_one(): assert _False def test_two(): assert _False def test_three(): assert _False """ ) result = pytester.runpytest("--tb", "no...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
253
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
266
runpytest
ref
function
result = pytester.runpytest("--tb", "no", "--stepwise-skip")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_stepwise.py
testing/test_stepwise.py
267
assert_outcomes
ref
function
result.assert_outcomes(failed=2)