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_terminal.py | testing/test_terminal.py | 1,905 | test_verbose | def | function | def test_verbose(self, pytester: Pytester, test_files) -> None:
result = pytester.runpytest("-o", "console_output_style=classic", "-v")
result.stdout.fnmatch_lines(
[
"test_one.py::test_one PASSED",
"test_two.py::test_two FAILED",
f"sub{os.... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,906 | runpytest | ref | class | |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,907 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,918 | test_quiet | def | function | def test_quiet(self, pytester: Pytester, test_files) -> None:
result = pytester.runpytest("-o", "console_output_style=classic", "-q")
result.stdout.fnmatch_lines([".F.F.", "*2 failed, 3 passed in*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,919 | runpytest | ref | class | |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,920 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines([".F.F.", "*2 failed, 3 passed in*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,923 | TestProgressOutputStyle | def | class | many_tests_files test_zero_tests_collected test_normal test_colored_progress test_count test_verbose test_verbose_count test_xdist_normal test_xdist_normal_count test_xdist_verbose test_capture_no |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,925 | many_tests_files | def | function | def many_tests_files(self, pytester: Pytester) -> None:
pytester.makepyfile(
test_bar="""
import pytest
@pytest.mark.parametrize('i', range(10))
def test_bar(i): pass
""",
test_foo="""
import pytest
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,926 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,944 | test_zero_tests_collected | def | function | def test_zero_tests_collected(self, pytester: Pytester) -> None:
"""Some plugins (testmon for example) might issue pytest_runtest_logreport without any tests being
actually collected (#2971)."""
pytester.makeconftest(
"""
def pytest_collection_modifyitems(items, config):
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,947 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,958 | runpytest | ref | function | output = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,959 | no_fnmatch_line | ref | function | output.stdout.no_fnmatch_line("*ZeroDivisionError*")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,960 | fnmatch_lines | ref | function | output.stdout.fnmatch_lines(["=* 2 passed in *="])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,962 | test_normal | def | function | def test_normal(self, many_tests_files, pytester: Pytester) -> None:
output = pytester.runpytest()
output.stdout.re_match_lines(
[
r"test_bar.py \.{10} \s+ \[ 50%\]",
r"test_foo.py \.{5} \s+ \[ 75%\]",
r"test_foobar.py \.{5} \s+ \[100%\]",
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,963 | runpytest | ref | function | output = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,964 | re_match_lines | ref | function | output.stdout.re_match_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,972 | test_colored_progress | def | function | def test_colored_progress(
self, pytester: Pytester, monkeypatch, color_mapping
) -> None:
monkeypatch.setenv("PY_COLORS", "1")
pytester.makepyfile(
test_axfail="""
import pytest
@pytest.mark.xfail
def test_axfail(): assert 0
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,975 | setenv | ref | function | monkeypatch.setenv("PY_COLORS", "1")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 1,976 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,001 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,002 | re_match_lines | ref | function | result.stdout.re_match_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,003 | format_for_rematch | ref | function | color_mapping.format_for_rematch(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,014 | runpytest | ref | function | result = pytester.runpytest("test_axfail.py")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,015 | re_match_lines | ref | function | result.stdout.re_match_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,016 | format_for_rematch | ref | function | color_mapping.format_for_rematch(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,024 | test_count | def | function | def test_count(self, many_tests_files, pytester: Pytester) -> None:
pytester.makeini(
"""
[pytest]
console_output_style = count
"""
)
output = pytester.runpytest()
output.stdout.re_match_lines(
[
r"test_bar.py \.... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,025 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,031 | runpytest | ref | function | output = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,032 | re_match_lines | ref | function | output.stdout.re_match_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,040 | test_verbose | def | function | def test_verbose(self, many_tests_files, pytester: Pytester) -> None:
output = pytester.runpytest("-v")
output.stdout.re_match_lines(
[
r"test_bar.py::test_bar\[0\] PASSED \s+ \[ 5%\]",
r"test_foo.py::test_foo\[4\] PASSED \s+ \[ 75%\]",
r"... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,041 | runpytest | ref | function | output = pytester.runpytest("-v")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,042 | re_match_lines | ref | function | output.stdout.re_match_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,050 | test_verbose_count | def | function | def test_verbose_count(self, many_tests_files, pytester: Pytester) -> None:
pytester.makeini(
"""
[pytest]
console_output_style = count
"""
)
output = pytester.runpytest("-v")
output.stdout.re_match_lines(
[
r"te... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,051 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,057 | runpytest | ref | function | output = pytester.runpytest("-v")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,058 | re_match_lines | ref | function | output.stdout.re_match_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,066 | test_xdist_normal | def | function | def test_xdist_normal(
self, many_tests_files, pytester: Pytester, monkeypatch
) -> None:
pytest.importorskip("xdist")
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=_False)
output = pytester.runpytest("-n2")
output.stdout.re_match_lines([r"\.{20} \s+ \[100%... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,069 | importorskip | ref | function | pytest.importorskip("xdist")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,070 | delenv | ref | function | monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,071 | runpytest | ref | function | output = pytester.runpytest("-n2")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,072 | re_match_lines | ref | function | output.stdout.re_match_lines([r"\.{20} \s+ \[100%\]"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,074 | test_xdist_normal_count | def | function | def test_xdist_normal_count(
self, many_tests_files, pytester: Pytester, monkeypatch
) -> None:
pytest.importorskip("xdist")
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=_False)
pytester.makeini(
"""
[pytest]
console_output_styl... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,077 | importorskip | ref | function | pytest.importorskip("xdist")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,078 | delenv | ref | function | monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,079 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,085 | runpytest | ref | function | output = pytester.runpytest("-n2")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,086 | re_match_lines | ref | function | output.stdout.re_match_lines([r"\.{20} \s+ \[20/20\]"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,088 | test_xdist_verbose | def | function | def test_xdist_verbose(
self, many_tests_files, pytester: Pytester, monkeypatch
) -> None:
pytest.importorskip("xdist")
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=_False)
output = pytester.runpytest("-n2", "-v")
output.stdout.re_match_lines_random(
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,091 | importorskip | ref | function | pytest.importorskip("xdist")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,092 | delenv | ref | function | monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,093 | runpytest | ref | function | output = pytester.runpytest("-n2", "-v")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,094 | re_match_lines_random | ref | function | output.stdout.re_match_lines_random(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,101 | fnmatch_lines_random | ref | function | output.stdout.fnmatch_lines_random(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,118 | test_capture_no | def | function | def test_capture_no(self, many_tests_files, pytester: Pytester) -> None:
output = pytester.runpytest("-s")
output.stdout.re_match_lines(
[r"test_bar.py \.{10}", r"test_foo.py \.{5}", r"test_foobar.py \.{5}"]
)
output = pytester.runpytest("--capture=no")
output.st... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,119 | runpytest | ref | function | output = pytester.runpytest("-s")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,120 | re_match_lines | ref | function | output.stdout.re_match_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,124 | runpytest | ref | function | output = pytester.runpytest("--capture=no")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,125 | no_fnmatch_line | ref | function | output.stdout.no_fnmatch_line("*%]*")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,128 | TestProgressWithTeardown | def | class | contest_with_teardown_fixture many_files test_teardown_simple test_teardown_with_test_also_failing test_teardown_many test_teardown_many_verbose test_xdist_normal |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,132 | contest_with_teardown_fixture | def | function | def contest_with_teardown_fixture(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
import pytest
@pytest.fixture
def fail_teardown():
yield
assert _False
"""
)
@pytest.fixture
def many_file... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,133 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,145 | many_files | def | function | def many_files(self, pytester: Pytester, contest_with_teardown_fixture) -> None:
pytester.makepyfile(
test_bar="""
import pytest
@pytest.mark.parametrize('i', range(5))
def test_bar(fail_teardown, i):
pass
""",
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,146 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,161 | test_teardown_simple | def | function | def test_teardown_simple(
self, pytester: Pytester, contest_with_teardown_fixture
) -> None:
pytester.makepyfile(
"""
def test_foo(fail_teardown):
pass
"""
)
output = pytester.runpytest()
output.stdout.re_match_lines([r"test... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,164 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,170 | runpytest | ref | function | output = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,171 | re_match_lines | ref | function | output.stdout.re_match_lines([r"test_teardown_simple.py \.E\s+\[100%\]"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,173 | test_teardown_with_test_also_failing | def | function | def test_teardown_with_test_also_failing(
self, pytester: Pytester, contest_with_teardown_fixture
) -> None:
pytester.makepyfile(
"""
def test_foo(fail_teardown):
assert 0
"""
)
output = pytester.runpytest("-rfE")
output.std... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,176 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,182 | runpytest | ref | function | output = pytester.runpytest("-rfE")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,183 | re_match_lines | ref | function | output.stdout.re_match_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,191 | test_teardown_many | def | function | def test_teardown_many(self, pytester: Pytester, many_files) -> None:
output = pytester.runpytest()
output.stdout.re_match_lines(
[r"test_bar.py (\.E){5}\s+\[ 25%\]", r"test_foo.py (\.E){15}\s+\[100%\]"]
)
def test_teardown_many_verbose(
self, pytester: Pytester, man... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,192 | runpytest | ref | function | output = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,193 | re_match_lines | ref | function | output.stdout.re_match_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,197 | test_teardown_many_verbose | def | function | def test_teardown_many_verbose(
self, pytester: Pytester, many_files, color_mapping
) -> None:
result = pytester.runpytest("-v")
result.stdout.fnmatch_lines(
color_mapping.format_for_fnmatch(
[
"test_bar.py::test_bar[0] PASSED * [ 5%]",
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,200 | runpytest | ref | function | result = pytester.runpytest("-v")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,201 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,202 | format_for_fnmatch | ref | function | color_mapping.format_for_fnmatch(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,214 | test_xdist_normal | def | function | def test_xdist_normal(self, many_files, pytester: Pytester, monkeypatch) -> None:
pytest.importorskip("xdist")
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=_False)
output = pytester.runpytest("-n2")
output.stdout.re_match_lines([r"[\.E]{40} \s+ \[100%\]"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,215 | importorskip | ref | function | pytest.importorskip("xdist")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,216 | delenv | ref | function | monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,217 | runpytest | ref | function | output = pytester.runpytest("-n2")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,218 | re_match_lines | ref | function | output.stdout.re_match_lines([r"[\.E]{40} \s+ \[100%\]"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,221 | test_skip_reasons_folding | def | function | def test_skip_reasons_folding() -> None:
path = "xyz"
lineno = 3
message = "justso"
longrepr = (path, lineno, message)
class X:
pass
ev1 = cast(CollectReport, X())
ev1.when = "execute"
ev1.skipped = _True # type: ignore[misc]
ev1.longrepr = longrepr
ev2 = cast(Collect... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,227 | X | def | class | |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,230 | X | ref | function | ev1 = cast(CollectReport, X())
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,235 | X | ref | function | ev2 = cast(CollectReport, X())
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,241 | X | ref | function | ev3 = cast(CollectReport, X())
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,246 | _folded_skips | ref | function | values = _folded_skips(Path.cwd(), [ev1, ev2, ev3])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,255 | test_line_with_reprcrash | def | function | def test_line_with_reprcrash(monkeypatch: MonkeyPatch) -> None:
mocked_verbose_word = "FAILED"
mocked_pos = "some::nodeid"
def mock_get_pos(*args):
return mocked_pos
monkeypatch.setattr(_pytest.terminal, "_get_pos", mock_get_pos)
class config:
pass
class rep:
def _ge... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,260 | mock_get_pos | def | function | def mock_get_pos(*args):
return mocked_pos
monkeypatch.setattr(_pytest.terminal, "_get_pos", mock_get_pos)
class config:
pass
class rep:
def _get_verbose_word(self, *args):
return mocked_verbose_word
class longrepr:
class reprcrash:
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,265 | config | def | class | |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,268 | rep | def | class | _get_verbose_word |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,269 | _get_verbose_word | def | function | def _get_verbose_word(self, *args):
return mocked_verbose_word
class longrepr:
class reprcrash:
pass
def check(msg, width, expected):
__tracebackhide__ = _True
if msg:
rep.longrepr.reprcrash.message = msg # type: ignore
a... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,272 | longrepr | def | class | |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,273 | reprcrash | def | class | |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,276 | check | def | function | def check(msg, width, expected):
__tracebackhide__ = _True
if msg:
rep.longrepr.reprcrash.message = msg # type: ignore
actual = _get_line_with_reprcrash_message(config, rep(), width) # type: ignore
assert actual == expected
if actual != f"{mocked_verbose_word} ... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,280 | _get_line_with_reprcrash_message | ref | function | actual = _get_line_with_reprcrash_message(config, rep(), width) # type: ignore
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,280 | rep | ref | function | actual = _get_line_with_reprcrash_message(config, rep(), width) # type: ignore
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.