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 | 2,100 | fnmatch_lines_random | ref | function | output.stdout.fnmatch_lines_random(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,117 | 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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,118 | runpytest | ref | function | output = pytester.runpytest("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,119 | re_match_lines | ref | function | output.stdout.re_match_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,123 | runpytest | ref | function | output = pytester.runpytest("--capture=no")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,124 | no_fnmatch_line | ref | function | output.stdout.no_fnmatch_line("*%]*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,127 | 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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,131 | 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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,132 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,144 | 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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,145 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,160 | 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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,163 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,169 | runpytest | ref | function | output = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,170 | re_match_lines | ref | function | output.stdout.re_match_lines([r"test_teardown_simple.py \.E\s+\[100%\]"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,172 | 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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,175 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,181 | runpytest | ref | function | output = pytester.runpytest("-rfE")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,182 | re_match_lines | ref | function | output.stdout.re_match_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,190 | 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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,191 | runpytest | ref | function | output = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,192 | re_match_lines | ref | function | output.stdout.re_match_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,196 | 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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,199 | runpytest | ref | function | result = pytester.runpytest("-v")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,200 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,201 | format_for_fnmatch | ref | function | color_mapping.format_for_fnmatch(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,213 | 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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,214 | importorskip | ref | function | pytest.importorskip("xdist")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,215 | delenv | ref | function | monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,216 | runpytest | ref | function | output = pytester.runpytest("-n2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,217 | re_match_lines | ref | function | output.stdout.re_match_lines([r"[\.E]{40} \s+ \[100%\]"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,220 | 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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,226 | X | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,229 | X | ref | function | ev1 = cast(CollectReport, X())
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,234 | X | ref | function | ev2 = cast(CollectReport, X())
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,240 | X | ref | function | ev3 = cast(CollectReport, X())
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,245 | _folded_skips | ref | function | values = _folded_skips(Path.cwd(), [ev1, ev2, ev3])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,254 | 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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,259 | 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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,264 | config | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,267 | rep | def | class | _get_verbose_word |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,268 | _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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,271 | longrepr | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,272 | reprcrash | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,275 | 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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,279 | _get_line_with_reprcrash_message | ref | function | actual = _get_line_with_reprcrash_message(config, rep(), width) # type: ignore
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,279 | rep | ref | function | actual = _get_line_with_reprcrash_message(config, rep(), width) # type: ignore
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,284 | wcswidth | ref | function | assert wcswidth(actual) <= width
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,287 | check | ref | function | check(None, 80, "FAILED some::nodeid")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,289 | check | ref | function | check("msg", 80, "FAILED some::nodeid - msg")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,290 | check | ref | function | check("msg", 3, "FAILED some::nodeid")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,292 | check | ref | function | check("msg", 24, "FAILED some::nodeid")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,293 | check | ref | function | check("msg", 25, "FAILED some::nodeid - msg")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,295 | check | ref | function | check("some longer msg", 24, "FAILED some::nodeid")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,296 | check | ref | function | check("some longer msg", 25, "FAILED some::nodeid - ...")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,297 | check | ref | function | check("some longer msg", 26, "FAILED some::nodeid - s...")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,299 | check | ref | function | check("some\nmessage", 25, "FAILED some::nodeid - ...")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,300 | check | ref | function | check("some\nmessage", 26, "FAILED some::nodeid - some")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,301 | check | ref | function | check("some\nmessage", 80, "FAILED some::nodeid - some")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,304 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 25, "FAILED some::nodeid - ...")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,305 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 26, "FAILED some::nodeid - ...")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,306 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 27, "FAILED some::nodeid - 🉐...")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,307 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 28, "FAILED some::nodeid - 🉐...")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,308 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 29, "FAILED some::nodeid - 🉐🉐...")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,312 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 29, "FAILED nodeid::🉐::withunicode")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,313 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 40, "FAILED nodeid::🉐::withunicode - 🉐🉐...")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,314 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 41, "FAILED nodeid::🉐::withunicode - 🉐🉐...")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,315 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 42, "FAILED nodeid::🉐::withunicode - 🉐🉐🉐...")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,316 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 80, "FAILED nodeid::🉐::withunicode - 🉐🉐🉐🉐🉐")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,319 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,330 | test_format_session_duration | def | function | def test_format_session_duration(seconds, expected):
from _pytest.terminal import format_session_duration
assert format_session_duration(seconds) == expected
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,333 | format_session_duration | ref | function | assert format_session_duration(seconds) == expected
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,336 | test_collecterror | def | function | def test_collecterror(pytester: Pytester) -> None:
p1 = pytester.makepyfile("raise SyntaxError()")
result = pytester.runpytest("-ra", str(p1))
result.stdout.fnmatch_lines(
[
"collected 0 items / 1 error",
"*= ERRORS =*",
"*_ ERROR collecting test_collecterror.py _... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,337 | makepyfile | ref | function | p1 = pytester.makepyfile("raise SyntaxError()")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,338 | runpytest | ref | function | result = pytester.runpytest("-ra", str(p1))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,339 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,353 | test_no_summary_collecterror | def | function | def test_no_summary_collecterror(pytester: Pytester) -> None:
p1 = pytester.makepyfile("raise SyntaxError()")
result = pytester.runpytest("-ra", "--no-summary", str(p1))
result.stdout.no_fnmatch_line("*= ERRORS =*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,354 | makepyfile | ref | function | p1 = pytester.makepyfile("raise SyntaxError()")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,355 | runpytest | ref | function | result = pytester.runpytest("-ra", "--no-summary", str(p1))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,356 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*= ERRORS =*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,359 | test_via_exec | def | function | def test_via_exec(pytester: Pytester) -> None:
p1 = pytester.makepyfile("exec('def test_via_exec(): pass')")
result = pytester.runpytest(str(p1), "-vv")
result.stdout.fnmatch_lines(
["test_via_exec.py::test_via_exec <- <string> PASSED*", "*= 1 passed in *"]
)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,360 | makepyfile | ref | function | p1 = pytester.makepyfile("exec('def test_via_exec(): pass')")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,361 | runpytest | ref | function | result = pytester.runpytest(str(p1), "-vv")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,362 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,367 | TestCodeHighlight | def | class | test_code_highlight_simple test_code_highlight_continuation test_code_highlight_custom_theme test_code_highlight_invalid_theme test_code_highlight_invalid_theme_mode |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,368 | test_code_highlight_simple | def | function | def test_code_highlight_simple(self, pytester: Pytester, color_mapping) -> None:
pytester.makepyfile(
"""
def test_foo():
assert 1 == 10
"""
)
result = pytester.runpytest("--color=yes")
result.stdout.fnmatch_lines(
color_map... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,369 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,375 | runpytest | ref | function | result = pytester.runpytest("--color=yes")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,376 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,377 | format_for_fnmatch | ref | function | color_mapping.format_for_fnmatch(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,386 | test_code_highlight_continuation | def | function | def test_code_highlight_continuation(
self, pytester: Pytester, color_mapping
) -> None:
pytester.makepyfile(
"""
def test_foo():
print('''
'''); assert 0
"""
)
result = pytester.runpytest("--color=yes")
res... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,389 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,396 | runpytest | ref | function | result = pytester.runpytest("--color=yes")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,398 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,399 | format_for_fnmatch | ref | function | color_mapping.format_for_fnmatch(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,409 | test_code_highlight_custom_theme | def | function | def test_code_highlight_custom_theme(
self, pytester: Pytester, color_mapping, monkeypatch: MonkeyPatch
) -> None:
pytester.makepyfile(
"""
def test_foo():
assert 1 == 10
"""
)
monkeypatch.setenv("PYTEST_THEME", "solarized-dark")
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,412 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,418 | setenv | ref | function | monkeypatch.setenv("PYTEST_THEME", "solarized-dark")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,419 | setenv | ref | function | monkeypatch.setenv("PYTEST_THEME_MODE", "dark")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,420 | runpytest | ref | function | result = pytester.runpytest("--color=yes")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.