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 | 558 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 559 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 xfailed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 561 | test_dynamic_xfail_set_during_runtest_failed | def | function | def test_dynamic_xfail_set_during_runtest_failed(self, pytester: Pytester) -> None:
# Issue #7486.
p = pytester.makepyfile(
"""
import pytest
def test_this(request):
request.node.add_marker(pytest.mark.xfail(reason="xfail"))
assert ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 563 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 571 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 572 | assert_outcomes | ref | function | result.assert_outcomes(xfailed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 574 | test_dynamic_xfail_set_during_runtest_passed_strict | def | function | def test_dynamic_xfail_set_during_runtest_passed_strict(
self, pytester: Pytester
) -> None:
# Issue #7486.
p = pytester.makepyfile(
"""
import pytest
def test_this(request):
request.node.add_marker(pytest.mark.xfail(reason="xfail", str... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 578 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 585 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 586 | assert_outcomes | ref | function | result.assert_outcomes(failed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 588 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 597 | test_xfail_raises | def | function | def test_xfail_raises(
self, expected, actual, matchline, pytester: Pytester
) -> None:
p = pytester.makepyfile(
"""
import pytest
@pytest.mark.xfail(raises=%s)
def test_raises():
raise %s()
"""
% (expected, actu... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 600 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 609 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 610 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines([matchline])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 612 | test_strict_sanity | def | function | def test_strict_sanity(self, pytester: Pytester) -> None:
"""Sanity check for xfail(strict=_True): a failing test should behave
exactly like a normal xfail."""
p = pytester.makepyfile(
"""
import pytest
@pytest.mark.xfail(reason='unsupported feature', stri... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 615 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 623 | runpytest | ref | function | result = pytester.runpytest(p, "-rxX")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 624 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*XFAIL*", "*unsupported feature*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 627 | parametrize | ref | function | @pytest.mark.parametrize("strict", [True, False])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 628 | test_strict_xfail | def | function | def test_strict_xfail(self, pytester: Pytester, strict: bool) -> None:
p = pytester.makepyfile(
"""
import pytest
@pytest.mark.xfail(reason='unsupported feature', strict=%s)
def test_foo():
with open('foo_executed', 'w'): pass # make sure tes... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 629 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 639 | runpytest | ref | function | result = pytester.runpytest(p, "-rxX")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 641 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 645 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 652 | joinpath | ref | function | assert pytester.path.joinpath("foo_executed").exists()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 652 | exists | ref | function | assert pytester.path.joinpath("foo_executed").exists()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 654 | parametrize | ref | function | @pytest.mark.parametrize("strict", [True, False])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 655 | test_strict_xfail_condition | def | function | def test_strict_xfail_condition(self, pytester: Pytester, strict: bool) -> None:
p = pytester.makepyfile(
"""
import pytest
@pytest.mark.xfail(_False, reason='unsupported feature', strict=%s)
def test_foo():
pass
"""
% stri... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 656 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 666 | runpytest | ref | function | result = pytester.runpytest(p, "-rxX")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 667 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 670 | parametrize | ref | function | @pytest.mark.parametrize("strict", [True, False])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 671 | test_xfail_condition_keyword | def | function | def test_xfail_condition_keyword(self, pytester: Pytester, strict: bool) -> None:
p = pytester.makepyfile(
"""
import pytest
@pytest.mark.xfail(condition=_False, reason='unsupported feature', strict=%s)
def test_foo():
pass
"""
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 672 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 682 | runpytest | ref | function | result = pytester.runpytest(p, "-rxX")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 683 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 686 | parametrize | ref | function | @pytest.mark.parametrize("strict_val", ["true", "false"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 687 | test_strict_xfail_default_from_file | def | function | def test_strict_xfail_default_from_file(
self, pytester: Pytester, strict_val
) -> None:
pytester.makeini(
"""
[pytest]
xfail_strict = %s
"""
% strict_val
)
p = pytester.makepyfile(
"""
import pytest
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 690 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 697 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 705 | runpytest | ref | function | result = pytester.runpytest(p, "-rxX")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 707 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 failed*" if strict else "*1 xpassed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 710 | test_xfail_markeval_namespace | def | function | def test_xfail_markeval_namespace(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
import pytest
def pytest_markeval_namespace():
return {"color": "green"}
"""
)
p = pytester.makepyfile(
"""
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 711 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 719 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 732 | runpytest | ref | function | res = pytester.runpytest(p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 734 | fnmatch_lines | ref | function | res.stdout.fnmatch_lines(["*1 failed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 735 | fnmatch_lines | ref | function | res.stdout.fnmatch_lines(["*1 xfailed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 738 | TestXFailwithSetupTeardown | def | class | test_failing_setup_issue9 test_failing_teardown_issue9 |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 739 | test_failing_setup_issue9 | def | function | def test_failing_setup_issue9(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
def setup_function(func):
assert 0
@pytest.mark.xfail
def test_func():
pass
"""
)
resul... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 740 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 751 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 752 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 xfail*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 754 | test_failing_teardown_issue9 | def | function | def test_failing_teardown_issue9(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
def teardown_function(func):
assert 0
@pytest.mark.xfail
def test_func():
pass
"""
)
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 755 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 766 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 767 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 xfail*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 770 | TestSkip | def | class | test_skip_class test_skips_on_false_string test_arg_as_reason test_skip_no_reason test_skip_with_reason test_only_skips_marked_test test_strict_and_skip test_wrong_skip_usage |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 771 | test_skip_class | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 772 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 786 | inline_run | ref | function | rec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 787 | assertoutcome | ref | function | rec.assertoutcome(skipped=2, passed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 789 | test_skips_on_false_string | def | function | def test_skips_on_false_string(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.mark.skip('_False')
def test_foo():
pass
"""
)
rec = pytester.inline_run()
rec.assertoutcome(skippe... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 790 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 798 | inline_run | ref | function | rec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 799 | assertoutcome | ref | function | rec.assertoutcome(skipped=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 801 | test_arg_as_reason | def | function | def test_arg_as_reason(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.mark.skip('testing stuff')
def test_bar():
pass
"""
)
result = pytester.runpytest("-rs")
result.stdout.fnma... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 802 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 810 | runpytest | ref | function | result = pytester.runpytest("-rs")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 811 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*testing stuff*", "*1 skipped*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 813 | test_skip_no_reason | def | function | def test_skip_no_reason(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.mark.skip
def test_foo():
pass
"""
)
result = pytester.runpytest("-rs")
result.stdout.fnmatch_lines(["*unc... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 814 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 822 | runpytest | ref | function | result = pytester.runpytest("-rs")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 823 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*unconditional skip*", "*1 skipped*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 825 | test_skip_with_reason | def | function | def test_skip_with_reason(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.mark.skip(reason="for lolz")
def test_bar():
pass
"""
)
result = pytester.runpytest("-rs")
result.stdout... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 826 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 834 | runpytest | ref | function | result = pytester.runpytest("-rs")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 835 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*for lolz*", "*1 skipped*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 837 | test_only_skips_marked_test | def | function | def test_only_skips_marked_test(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.mark.skip
def test_foo():
pass
@pytest.mark.skip(reason="nothing in particular")
def test_bar():
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 838 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 851 | runpytest | ref | function | result = pytester.runpytest("-rs")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 852 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*nothing in particular*", "*1 passed*2 skipped*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 854 | test_strict_and_skip | def | function | def test_strict_and_skip(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.mark.skip
def test_hello():
pass
"""
)
result = pytester.runpytest("-rs", "--strict-markers")
result.stdo... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 855 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 863 | runpytest | ref | function | result = pytester.runpytest("-rs", "--strict-markers")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 864 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*unconditional skip*", "*1 skipped*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 866 | test_wrong_skip_usage | def | function | def test_wrong_skip_usage(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.mark.skip(_False, reason="I thought this was skipif")
def test_hello():
pass
"""
)
result = pytester.runpytest()... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 867 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 875 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 876 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 884 | TestSkipif | def | class | test_skipif_conditional test_skipif_reporting test_skipif_using_platform test_skipif_reporting_multiple |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 885 | test_skipif_conditional | def | function | def test_skipif_conditional(self, pytester: Pytester) -> None:
item = pytester.getitem(
"""
import pytest
@pytest.mark.skipif("hasattr(os, 'sep')")
def test_func():
pass
"""
)
x = pytest.raises(pytest.skip.Exception, lam... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 886 | getitem | ref | function | item = pytester.getitem(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 894 | raises | ref | function | x = 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 | 894 | pytest_runtest_setup | ref | function | x = 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 | 897 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 900 | test_skipif_reporting | def | function | def test_skipif_reporting(self, pytester: Pytester, params) -> None:
p = pytester.makepyfile(
test_foo="""
import pytest
@pytest.mark.skipif(%(params)s)
def test_that():
assert 0
"""
% dict(params=params)
)
r... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 901 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 910 | runpytest | ref | function | result = pytester.runpytest(p, "-s", "-rs")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.