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_terminal.py | testing/test_terminal.py | 347 | test_verbose_skip_reason | def | function | def test_verbose_skip_reason(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.mark.skip(reason="123")
def test_1():
pass
@pytest.mark.xfail(reason="456")
def test_2():
p... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 348 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 389 | runpytest | ref | function | result = pytester.runpytest("-v")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 390 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 406 | TestCollectonly | def | class | test_collectonly_basic test_collectonly_skipped_module test_collectonly_displays_test_description test_collectonly_failed_module test_collectonly_fatal test_collectonly_simple test_collectonly_error test_collectonly_missing_path test_collectonly_quiet test_collectonly_more_quiet test_collect_only_summary_status |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 407 | test_collectonly_basic | def | function | def test_collectonly_basic(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
def test_func():
pass
"""
)
result = pytester.runpytest("--collect-only")
result.stdout.fnmatch_lines(
["<Module test_collectonly_basic.p... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 408 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 414 | runpytest | ref | function | result = pytester.runpytest("--collect-only")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 415 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 419 | test_collectonly_skipped_module | def | function | def test_collectonly_skipped_module(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
pytest.skip("hello")
"""
)
result = pytester.runpytest("--collect-only", "-rs")
result.stdout.fnmatch_lines(["*ERROR collecting*"]... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 420 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 426 | runpytest | ref | function | result = pytester.runpytest("--collect-only", "-rs")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 427 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*ERROR collecting*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 429 | test_collectonly_displays_test_description | def | function | def test_collectonly_displays_test_description(
self, pytester: Pytester, dummy_yaml_custom_test
) -> None:
"""Used dummy_yaml_custom_test for an Item without ``obj``."""
pytester.makepyfile(
"""
def test_with_description():
''' This test has a de... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 433 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 442 | runpytest | ref | function | result = pytester.runpytest("--collect-only", "--verbose")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 443 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 457 | test_collectonly_failed_module | def | function | def test_collectonly_failed_module(self, pytester: Pytester) -> None:
pytester.makepyfile("""raise ValueError(0)""")
result = pytester.runpytest("--collect-only")
result.stdout.fnmatch_lines(["*raise ValueError*", "*1 error*"])
def test_collectonly_fatal(self, pytester: Pytester) -> Non... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 458 | makepyfile | ref | function | pytester.makepyfile("""raise ValueError(0)""")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 459 | runpytest | ref | function | result = pytester.runpytest("--collect-only")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 460 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*raise ValueError*", "*1 error*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 462 | test_collectonly_fatal | def | function | def test_collectonly_fatal(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
def pytest_collectstart(collector):
assert 0, "urgs"
"""
)
result = pytester.runpytest("--collect-only")
result.stdout.fnmatch_lines(["*INTERNAL*ar... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 463 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 469 | runpytest | ref | function | result = pytester.runpytest("--collect-only")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 470 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*INTERNAL*args*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 473 | test_collectonly_simple | def | function | def test_collectonly_simple(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""
def test_func1():
pass
class TestClass(object):
def test_method(self):
pass
"""
)
result = pytester.runp... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 474 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 483 | runpytest | ref | function | result = pytester.runpytest("--collect-only", p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 486 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 495 | test_collectonly_error | def | function | def test_collectonly_error(self, pytester: Pytester) -> None:
p = pytester.makepyfile("import Errlkjqweqwe")
result = pytester.runpytest("--collect-only", p)
assert result.ret == 2
result.stdout.fnmatch_lines(
textwrap.dedent(
"""\
*ERROR*
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 496 | makepyfile | ref | function | p = pytester.makepyfile("import Errlkjqweqwe")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 497 | runpytest | ref | function | result = pytester.runpytest("--collect-only", p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 499 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 510 | test_collectonly_missing_path | def | function | def test_collectonly_missing_path(self, pytester: Pytester) -> None:
"""Issue 115: failure in parseargs will cause session not to
have the items attribute."""
result = pytester.runpytest("--collect-only", "uhm_missing_path")
assert result.ret == 4
result.stderr.fnmatch_lines(... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 513 | runpytest | ref | function | result = pytester.runpytest("--collect-only", "uhm_missing_path")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 515 | fnmatch_lines | ref | function | result.stderr.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 519 | test_collectonly_quiet | def | function | def test_collectonly_quiet(self, pytester: Pytester) -> None:
pytester.makepyfile("def test_foo(): pass")
result = pytester.runpytest("--collect-only", "-q")
result.stdout.fnmatch_lines(["*test_foo*"])
def test_collectonly_more_quiet(self, pytester: Pytester) -> None:
pytester.m... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 520 | makepyfile | ref | function | pytester.makepyfile("def test_foo(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 521 | runpytest | ref | function | result = pytester.runpytest("--collect-only", "-q")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 522 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*test_foo*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 524 | test_collectonly_more_quiet | def | function | def test_collectonly_more_quiet(self, pytester: Pytester) -> None:
pytester.makepyfile(test_fun="def test_foo(): pass")
result = pytester.runpytest("--collect-only", "-qq")
result.stdout.fnmatch_lines(["*test_fun.py: 1*"])
def test_collect_only_summary_status(self, pytester: Pytester) -... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 525 | makepyfile | ref | function | pytester.makepyfile(test_fun="def test_foo(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 526 | runpytest | ref | function | result = pytester.runpytest("--collect-only", "-qq")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 527 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*test_fun.py: 1*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 529 | test_collect_only_summary_status | def | function | def test_collect_only_summary_status(self, pytester: Pytester) -> None:
"""Custom status depending on test selection using -k or -m. #7701."""
pytester.makepyfile(
test_collect_foo="""
def test_foo(): pass
""",
test_collect_bar="""
def test... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 531 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 540 | runpytest | ref | function | result = pytester.runpytest("--collect-only")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 541 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines("*== 3 tests collected in * ==*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 543 | runpytest | ref | function | result = pytester.runpytest("--collect-only", "test_collect_foo.py")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 544 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines("*== 1 test collected in * ==*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 546 | runpytest | ref | function | result = pytester.runpytest("--collect-only", "-k", "foo")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 547 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines("*== 2/3 tests collected (1 deselected) in * ==*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 549 | runpytest | ref | function | result = pytester.runpytest("--collect-only", "-k", "test_bar")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 550 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines("*== 1/3 tests collected (2 deselected) in * ==*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 552 | runpytest | ref | function | result = pytester.runpytest("--collect-only", "-k", "invalid")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 553 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines("*== no tests collected (3 deselected) in * ==*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 556 | runpytest | ref | function | result = pytester.runpytest("--collect-only", "no_tests_here")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 557 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines("*== no tests collected in * ==*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 559 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 564 | runpytest | ref | function | result = pytester.runpytest("--collect-only")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 565 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines("*== 3 tests collected, 1 error in * ==*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 566 | runpytest | ref | function | result = pytester.runpytest("--collect-only", "-k", "foo")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 567 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 572 | TestFixtureReporting | def | class | test_setup_fixture_error test_teardown_fixture_error test_teardown_fixture_error_and_test_failure test_setup_teardown_output_and_test_failure |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 573 | test_setup_fixture_error | def | function | def test_setup_fixture_error(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
def setup_function(function):
print("setup func")
assert 0
def test_nada():
pass
"""
)
result = pytester.runpyt... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 574 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 583 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 584 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 595 | test_teardown_fixture_error | def | function | def test_teardown_fixture_error(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
def test_nada():
pass
def teardown_function(function):
print("teardown func")
assert 0
"""
)
result = pytest... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 596 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 605 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 606 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 617 | test_teardown_fixture_error_and_test_failure | def | function | def test_teardown_fixture_error_and_test_failure(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
def test_fail():
assert 0, "failingfunc"
def teardown_function(function):
print("teardown func")
assert _False
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 618 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 628 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 629 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 643 | test_setup_teardown_output_and_test_failure | def | function | def test_setup_teardown_output_and_test_failure(self, pytester: Pytester) -> None:
"""Test for issue #442."""
pytester.makepyfile(
"""
def setup_function(function):
print("setup func")
def test_fail():
assert 0, "failingfunc"
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 645 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 657 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 658 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 672 | TestTerminalFunctional | def | class | test_deselected test_deselected_with_hookwrapper test_show_deselected_items_using_markexpr_before_test_execution test_no_skip_summary_if_failure test_passes test_header_trailer_info test_no_header_trailer_info test_header test_header_absolute_testpath test_no_header test_no_summary test_showlocals test_showlocals_short... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 673 | test_deselected | def | function | def test_deselected(self, pytester: Pytester) -> None:
testpath = pytester.makepyfile(
"""
def test_one():
pass
def test_two():
pass
def test_three():
pass
"""
)
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 674 | makepyfile | ref | function | testpath = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 684 | runpytest | ref | function | result = pytester.runpytest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 687 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 692 | test_deselected_with_hookwrapper | def | function | def test_deselected_with_hookwrapper(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
import pytest
@pytest.hookimpl(hookwrapper=_True)
def pytest_collection_modifyitems(config, items):
yield
deselected = items.pop... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 693 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 704 | makepyfile | ref | function | testpath = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 714 | runpytest | ref | function | result = pytester.runpytest(testpath)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 715 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 723 | test_show_deselected_items_using_markexpr_before_test_execution | def | function | def test_show_deselected_items_using_markexpr_before_test_execution(
self, pytester: Pytester
) -> None:
pytester.makepyfile(
test_show_deselected="""
import pytest
@pytest.mark.foo
def test_foobar():
pass
@pytest.mark... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 726 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 742 | runpytest | ref | function | result = pytester.runpytest("-m", "not foo")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 743 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 750 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*= 1 deselected =*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 753 | test_no_skip_summary_if_failure | def | function | def test_no_skip_summary_if_failure(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
def test_ok():
pass
def test_fail():
assert 0
def test_skip():
pytest.skip("dontshow")
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 754 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 765 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 769 | test_passes | def | function | def test_passes(self, pytester: Pytester) -> None:
p1 = pytester.makepyfile(
"""
def test_passes():
pass
class TestClass(object):
def test_method(self):
pass
"""
)
old = p1.parent
pytester... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 770 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.