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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 951 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 958 | runpytest | ref | function | result = pytester.runpytest(p, "-v")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 959 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 967 | test_skipif_class | def | class | |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 968 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 980 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 981 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*2 skipped*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 985 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,011 | runpytest | ref | function | result = pytester.runpytest("-rs")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,012 | fnmatch_lines_random | ref | function | result.stdout.fnmatch_lines_random(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,022 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,035 | runpytest | ref | function | result = pytester.runpytest("-rs")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,041 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,056 | runpytest | ref | function | result = pytester.runpytest("-rfxXs")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,057 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,063 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,073 | runpytest | ref | function | result = pytester.runpytest("-rE")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,074 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["ERROR*test_foo*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,078 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,098 | runpytest | ref | function | result = pytester.runpytest("-ra")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,099 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,111 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,121 | runpytest | ref | function | result = pytester.runpytest("-ra")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,122 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["ERROR*test_foo*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,126 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,140 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,172 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(expected)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,176 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,188 | runpytest | ref | function | result = pytester.runpytest("-rsx")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,193 | runpytest | ref | function | result = pytester.runpytest("--markers")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,194 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,203 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,209 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,217 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,220 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*xpassed*")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,224 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,236 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,243 | runpytest | ref | function | result = pytester.runpytest("-rsxX")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,244 | fnmatch_lines_random | ref | function | result.stdout.fnmatch_lines_random(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,253 | TestBooleanCondition | def | class | test_skipif test_skipif_noreason test_xfail |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,255 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,266 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,267 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,274 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,282 | runpytest | ref | function | result = pytester.runpytest("-rs")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,283 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,290 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,298 | runpytest | ref | function | result = pytester.runpytest("-rxs")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,299 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,310 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,323 | inline_run | ref | function | result = pytester.inline_run()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,324 | listoutcomes | ref | function | passed, skipped, failed = result.listoutcomes()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,332 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,341 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,342 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,349 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,358 | runpytest | ref | function | result = pytester.runpytest("-rxs")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,359 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*SKIP*skip_module_level"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,364 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,373 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,374 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*TypeError:*['unknown']*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,379 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,397 | inline_run | ref | function | result = pytester.inline_run()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,398 | listoutcomes | ref | function | passed, skipped, failed = result.listoutcomes()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,406 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,413 | runpytest | ref | function | result = pytester.runpytest("-ra")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,414 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,424 | raises | ref | function | with pytest.raises(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,428 | importorskip | ref | function | pytest.importorskip("doesnotexist")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,432 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 1,443 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py | testing/test_stepwise.py | 9 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py | testing/test_stepwise.py | 19 | makepyfile | ref | function | pytester.makepyfile(
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.