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
911
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*SKIP*1*test_foo.py*platform*", "*1 skipped*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
914
test_skipif_using_platform
def
function
def test_skipif_using_platform(self, pytester: Pytester) -> None: item = pytester.getitem( """ import pytest @pytest.mark.skipif("platform.platform() == platform.platform()") def test_func(): pass """ ) pytest.raises(pyt...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
915
getitem
ref
function
item = pytester.getitem(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
923
raises
ref
function
pytest.raises(pytest.skip.Exception, lambda: pytest_runtest_setup(item))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
923
pytest_runtest_setup
ref
function
pytest.raises(pytest.skip.Exception, lambda: pytest_runtest_setup(item))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
925
parametrize
ref
function
@pytest.mark.parametrize(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
929
test_skipif_reporting_multiple
def
function
def test_skipif_reporting_multiple( self, pytester: Pytester, marker, msg1, msg2 ) -> None: pytester.makepyfile( test_foo=""" import pytest @pytest.mark.{marker}(_False, reason='first_condition') @pytest.mark.{marker}(_True, reason='second_conditio...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
932
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
943
runpytest
ref
function
result = pytester.runpytest("-s", "-rsxX")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
944
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
950
test_skip_not_report_default
def
function
def test_skip_not_report_default(pytester: Pytester) -> None: p = pytester.makepyfile( test_one=""" import pytest def test_this(): pytest.skip("hello") """ ) result = pytester.runpytest(p, "-v") result.stdout.fnmatch_lines( [ # "*HINT*use*-r*",...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
951
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
958
runpytest
ref
function
result = pytester.runpytest(p, "-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
959
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
967
test_skipif_class
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
968
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
980
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
981
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*2 skipped*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
984
test_skipped_reasons_functional
def
function
def test_skipped_reasons_functional(pytester: Pytester) -> None: pytester.makepyfile( test_one=""" import pytest from conftest import doskip def setup_function(func): doskip() def test_func(): pass class TestClass...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
985
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,011
runpytest
ref
function
result = pytester.runpytest("-rs")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,012
fnmatch_lines_random
ref
function
result.stdout.fnmatch_lines_random(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,021
test_skipped_folding
def
function
def test_skipped_folding(pytester: Pytester) -> None: pytester.makepyfile( test_one=""" import pytest pytestmark = pytest.mark.skip("Folding") def setup_function(func): pass def test_func(): pass class TestClass(obje...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,022
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,035
runpytest
ref
function
result = pytester.runpytest("-rs")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,036
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*SKIP*2*test_one.py: Folding"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,040
test_reportchars
def
function
def test_reportchars(pytester: Pytester) -> None: pytester.makepyfile( """ import pytest def test_1(): assert 0 @pytest.mark.xfail def test_2(): assert 0 @pytest.mark.xfail def test_3(): pass def test_4(): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,041
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,056
runpytest
ref
function
result = pytester.runpytest("-rfxXs")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,057
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,062
test_reportchars_error
def
function
def test_reportchars_error(pytester: Pytester) -> None: pytester.makepyfile( conftest=""" def pytest_runtest_teardown(): assert 0 """, test_simple=""" def test_foo(): pass """, ) result = pytester.runpytest("-rE") result.stdout.fnma...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,063
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,073
runpytest
ref
function
result = pytester.runpytest("-rE")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,074
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["ERROR*test_foo*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,077
test_reportchars_all
def
function
def test_reportchars_all(pytester: Pytester) -> None: pytester.makepyfile( """ import pytest def test_1(): assert 0 @pytest.mark.xfail def test_2(): assert 0 @pytest.mark.xfail def test_3(): pass def test_4(): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,078
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,098
runpytest
ref
function
result = pytester.runpytest("-ra")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,099
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,110
test_reportchars_all_error
def
function
def test_reportchars_all_error(pytester: Pytester) -> None: pytester.makepyfile( conftest=""" def pytest_runtest_teardown(): assert 0 """, test_simple=""" def test_foo(): pass """, ) result = pytester.runpytest("-ra") result.stdout....
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,111
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,121
runpytest
ref
function
result = pytester.runpytest("-ra")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,122
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["ERROR*test_foo*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,125
test_errors_in_xfail_skip_expressions
def
function
def test_errors_in_xfail_skip_expressions(pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.mark.skipif("asd") def test_nameerror(): pass @pytest.mark.xfail("syntax error") def test_syntax(): pass def test_fun...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,126
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,140
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,172
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(expected)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,175
test_xfail_skipif_with_globals
def
function
def test_xfail_skipif_with_globals(pytester: Pytester) -> None: pytester.makepyfile( """ import pytest x = 3 @pytest.mark.skipif("x == 3") def test_skip1(): pass @pytest.mark.xfail("x == 3") def test_boolean(): assert 0 """ ) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,176
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,188
runpytest
ref
function
result = pytester.runpytest("-rsx")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,189
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*SKIP*x == 3*", "*XFAIL*test_boolean*", "*x == 3*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,192
test_default_markers
def
function
def test_default_markers(pytester: Pytester) -> None: result = pytester.runpytest("--markers") result.stdout.fnmatch_lines( [ "*skipif(condition, ..., [*], reason=...)*skip*", "*xfail(condition, ..., [*], reason=..., run=_True, raises=None, strict=xfail_strict)*expected failure*"...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,193
runpytest
ref
function
result = pytester.runpytest("--markers")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,194
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,202
test_xfail_test_setup_exception
def
function
def test_xfail_test_setup_exception(pytester: Pytester) -> None: pytester.makeconftest( """ def pytest_runtest_setup(): 0 / 0 """ ) p = pytester.makepyfile( """ import pytest @pytest.mark.xfail def test_func(): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,203
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,209
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,217
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,220
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*xpassed*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,223
test_imperativeskip_on_xfail_test
def
function
def test_imperativeskip_on_xfail_test(pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.mark.xfail def test_that_fails(): assert 0 @pytest.mark.skipif("_True") def test_hello(): pass """ ) pytester.makecon...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,224
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,236
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,243
runpytest
ref
function
result = pytester.runpytest("-rsxX")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,244
fnmatch_lines_random
ref
function
result.stdout.fnmatch_lines_random(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,253
TestBooleanCondition
def
class
test_skipif test_skipif_noreason test_xfail
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,254
test_skipif
def
function
def test_skipif(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.mark.skipif(_True, reason="_True123") def test_func1(): pass @pytest.mark.skipif(_False, reason="_True123") def test_func2...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,255
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,266
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,267
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,273
test_skipif_noreason
def
function
def test_skipif_noreason(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.mark.skipif(_True) def test_func(): pass """ ) result = pytester.runpytest("-rs") result.stdout.fnmatch_l...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,274
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,282
runpytest
ref
function
result = pytester.runpytest("-rs")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,283
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,289
test_xfail
def
function
def test_xfail(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.mark.xfail(_True, reason="_True123") def test_func(): assert 0 """ ) result = pytester.runpytest("-rxs") result.std...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,290
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,298
runpytest
ref
function
result = pytester.runpytest("-rxs")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,299
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,308
test_xfail_item
def
function
def test_xfail_item(pytester: Pytester) -> None: # Ensure pytest.xfail works with non-Python Item pytester.makeconftest( """ import pytest class MyItem(pytest.Item): nodeid = 'foo' def runtest(self): pytest.xfail("Expected Failure") def p...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,310
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,323
inline_run
ref
function
result = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,324
listoutcomes
ref
function
passed, skipped, failed = result.listoutcomes()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,330
test_module_level_skip_error
def
function
def test_module_level_skip_error(pytester: Pytester) -> None: """Verify that using pytest.skip at module level causes a collection error.""" pytester.makepyfile( """ import pytest pytest.skip("skip_module_level") def test_func(): assert _True """ ) result...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,332
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,341
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,342
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,347
test_module_level_skip_with_allow_module_level
def
function
def test_module_level_skip_with_allow_module_level(pytester: Pytester) -> None: """Verify that using pytest.skip(allow_module_level=_True) is allowed.""" pytester.makepyfile( """ import pytest pytest.skip("skip_module_level", allow_module_level=_True) def test_func(): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,349
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,358
runpytest
ref
function
result = pytester.runpytest("-rxs")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,359
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*SKIP*skip_module_level"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,362
test_invalid_skip_keyword_parameter
def
function
def test_invalid_skip_keyword_parameter(pytester: Pytester) -> None: """Verify that using pytest.skip() with unknown parameter raises an error.""" pytester.makepyfile( """ import pytest pytest.skip("skip_module_level", unknown=1) def test_func(): assert 0 """ ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,364
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,373
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,374
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*TypeError:*['unknown']*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,377
test_mark_xfail_item
def
function
def test_mark_xfail_item(pytester: Pytester) -> None: # Ensure pytest.mark.xfail works with non-Python Item pytester.makeconftest( """ import pytest class MyItem(pytest.Item): nodeid = 'foo' def setup(self): marker = pytest.mark.xfail("1 == 2", re...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,379
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,397
inline_run
ref
function
result = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,398
listoutcomes
ref
function
passed, skipped, failed = result.listoutcomes()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,404
test_summary_list_after_errors
def
function
def test_summary_list_after_errors(pytester: Pytester) -> None: """Ensure the list of errors/fails/xfails/skips appears after tracebacks in terminal reporting.""" pytester.makepyfile( """ import pytest def test_fail(): assert 0 """ ) result = pytester.runpytest("-...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,406
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,413
runpytest
ref
function
result = pytester.runpytest("-ra")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py
testing/test_skipping.py
1,414
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(