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 | 2,285 | wcswidth | ref | function | assert wcswidth(actual) <= width
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,288 | check | ref | function | check(None, 80, "FAILED some::nodeid")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,290 | check | ref | function | check("msg", 80, "FAILED some::nodeid - msg")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,291 | check | ref | function | check("msg", 3, "FAILED some::nodeid")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,293 | check | ref | function | check("msg", 24, "FAILED some::nodeid")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,294 | check | ref | function | check("msg", 25, "FAILED some::nodeid - msg")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,296 | check | ref | function | check("some longer msg", 24, "FAILED some::nodeid")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,297 | check | ref | function | check("some longer msg", 25, "FAILED some::nodeid - ...")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,298 | check | ref | function | check("some longer msg", 26, "FAILED some::nodeid - s...")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,300 | check | ref | function | check("some\nmessage", 25, "FAILED some::nodeid - ...")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,301 | check | ref | function | check("some\nmessage", 26, "FAILED some::nodeid - some")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,302 | check | ref | function | check("some\nmessage", 80, "FAILED some::nodeid - some")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,305 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 25, "FAILED some::nodeid - ...")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,306 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 26, "FAILED some::nodeid - ...")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,307 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 27, "FAILED some::nodeid - 🉐...")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,308 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 28, "FAILED some::nodeid - 🉐...")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,309 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 29, "FAILED some::nodeid - 🉐🉐...")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,313 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 29, "FAILED nodeid::🉐::withunicode")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,314 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 40, "FAILED nodeid::🉐::withunicode - 🉐🉐...")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,315 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 41, "FAILED nodeid::🉐::withunicode - 🉐🉐...")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,316 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 42, "FAILED nodeid::🉐::withunicode - 🉐🉐🉐...")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,317 | check | ref | function | check("🉐🉐🉐🉐🉐\n2nd line", 80, "FAILED nodeid::🉐::withunicode - 🉐🉐🉐🉐🉐")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,320 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,331 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,334 | format_session_duration | ref | function | assert format_session_duration(seconds) == expected
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,337 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,338 | makepyfile | ref | function | p1 = pytester.makepyfile("raise SyntaxError()")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,339 | runpytest | ref | function | result = pytester.runpytest("-ra", str(p1))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,340 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,354 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,355 | makepyfile | ref | function | p1 = pytester.makepyfile("raise SyntaxError()")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,356 | runpytest | ref | function | result = pytester.runpytest("-ra", "--no-summary", str(p1))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,357 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*= ERRORS =*")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,360 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,361 | makepyfile | ref | function | p1 = pytester.makepyfile("exec('def test_via_exec(): pass')")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,362 | runpytest | ref | function | result = pytester.runpytest(str(p1), "-vv")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,363 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,368 | TestCodeHighlight | def | class | test_code_highlight_simple test_code_highlight_continuation |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,369 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,370 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,376 | runpytest | ref | function | result = pytester.runpytest("--color=yes")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,377 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,378 | 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,387 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,390 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,397 | runpytest | ref | function | result = pytester.runpytest("--color=yes")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,399 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,400 | 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,411 | test_raw_skip_reason_skipped | def | function | def test_raw_skip_reason_skipped() -> None:
report = SimpleNamespace()
report.skipped = _True
report.longrepr = ("xyz", 3, "Skipped: Just so")
reason = _get_raw_skip_reason(cast(TestReport, report))
assert reason == "Just so"
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,416 | _get_raw_skip_reason | ref | function | reason = _get_raw_skip_reason(cast(TestReport, report))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,420 | test_raw_skip_reason_xfail | def | function | def test_raw_skip_reason_xfail() -> None:
report = SimpleNamespace()
report.wasxfail = "reason: To everything there is a season"
reason = _get_raw_skip_reason(cast(TestReport, report))
assert reason == "To everything there is a season"
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,424 | _get_raw_skip_reason | ref | function | reason = _get_raw_skip_reason(cast(TestReport, report))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,428 | test_format_trimmed | def | function | def test_format_trimmed() -> None:
msg = "unconditional skip"
assert _format_trimmed(" ({}) ", msg, len(msg) + 4) == " (unconditional skip) "
assert _format_trimmed(" ({}) ", msg, len(msg) + 3) == " (unconditional ...) "
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,431 | _format_trimmed | ref | function | assert _format_trimmed(" ({}) ", msg, len(msg) + 4) == " (unconditional skip) "
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py | testing/test_terminal.py | 2,432 | _format_trimmed | ref | function | assert _format_trimmed(" ({}) ", msg, len(msg) + 3) == " (unconditional ...) "
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 7 | skip | ref | function | pytest.skip("threadexception plugin needs Python>=3.8", allow_module_level=True)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 10 | filterwarnings | ref | function | @pytest.mark.filterwarnings("default::pytest.PytestUnhandledThreadExceptionWarning")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 11 | test_unhandled_thread_exception | def | function | def test_unhandled_thread_exception(pytester: Pytester) -> None:
pytester.makepyfile(
test_it="""
import threading
def test_it():
def oops():
raise ValueError("Oops")
t = threading.Thread(target=oops, name="MyThread")
t.start()
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 12 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 27 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 29 | parseoutcomes | ref | function | assert result.parseoutcomes() == {"passed": 2, "warnings": 1}
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 30 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 44 | filterwarnings | ref | function | @pytest.mark.filterwarnings("default::pytest.PytestUnhandledThreadExceptionWarning")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 45 | test_unhandled_thread_exception_in_setup | def | function | def test_unhandled_thread_exception_in_setup(pytester: Pytester) -> None:
pytester.makepyfile(
test_it="""
import threading
import pytest
@pytest.fixture
def threadexc():
def oops():
raise ValueError("Oops")
t = threading.Thread(target... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 46 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 63 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 65 | parseoutcomes | ref | function | assert result.parseoutcomes() == {"passed": 2, "warnings": 1}
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 66 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 80 | filterwarnings | ref | function | @pytest.mark.filterwarnings("default::pytest.PytestUnhandledThreadExceptionWarning")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 81 | test_unhandled_thread_exception_in_teardown | def | function | def test_unhandled_thread_exception_in_teardown(pytester: Pytester) -> None:
pytester.makepyfile(
test_it="""
import threading
import pytest
@pytest.fixture
def threadexc():
def oops():
raise ValueError("Oops")
yield
t = th... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 82 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 100 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 102 | parseoutcomes | ref | function | assert result.parseoutcomes() == {"passed": 2, "warnings": 1}
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 103 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 117 | filterwarnings | ref | function | @pytest.mark.filterwarnings("error::pytest.PytestUnhandledThreadExceptionWarning")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 118 | test_unhandled_thread_exception_warning_error | def | function | def test_unhandled_thread_exception_warning_error(pytester: Pytester) -> None:
pytester.makepyfile(
test_it="""
import threading
import pytest
def test_it():
def oops():
raise ValueError("Oops")
t = threading.Thread(target=oops, name="MyThread... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 119 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 134 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_threadexception.py | testing/test_threadexception.py | 136 | parseoutcomes | ref | function | assert result.parseoutcomes() == {"passed": 1, "failed": 1}
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 27 | test_tmp_path_fixture | def | function | def test_tmp_path_fixture(pytester: Pytester) -> None:
p = pytester.copy_example("tmpdir/tmp_path_fixture.py")
results = pytester.runpytest(p)
results.stdout.fnmatch_lines(["*1 passed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 28 | copy_example | ref | function | p = pytester.copy_example("tmpdir/tmp_path_fixture.py")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 29 | runpytest | ref | function | results = pytester.runpytest(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 30 | fnmatch_lines | ref | function | results.stdout.fnmatch_lines(["*1 passed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 34 | FakeConfig | def | class | trace get option |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 38 | trace | def | function | def trace(self):
return self
def get(self, key):
return lambda *k: None
@property
def option(self):
return self
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 45 | option | def | function | def option(self):
return self
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 49 | TestTmpPathHandler | def | class | test_mktemp test_tmppath_relative_basetemp_absolute |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 50 | test_mktemp | def | function | def test_mktemp(self, tmp_path):
config = cast(Config, FakeConfig(tmp_path))
t = TempPathFactory.from_config(config, _ispytest=_True)
tmp = t.mktemp("world")
assert str(tmp.relative_to(t.getbasetemp())) == "world0"
tmp = t.mktemp("this")
assert str(tmp.relative_to(t.g... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 51 | FakeConfig | ref | function | config = cast(Config, FakeConfig(tmp_path))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 52 | from_config | ref | function | t = TempPathFactory.from_config(config, _ispytest=True)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 53 | mktemp | ref | function | tmp = t.mktemp("world")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 54 | getbasetemp | ref | function | assert str(tmp.relative_to(t.getbasetemp())) == "world0"
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 55 | mktemp | ref | function | tmp = t.mktemp("this")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 56 | getbasetemp | ref | function | assert str(tmp.relative_to(t.getbasetemp())).startswith("this")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 57 | mktemp | ref | function | tmp2 = t.mktemp("this")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 58 | getbasetemp | ref | function | assert str(tmp2.relative_to(t.getbasetemp())).startswith("this")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 61 | test_tmppath_relative_basetemp_absolute | def | function | def test_tmppath_relative_basetemp_absolute(self, tmp_path, monkeypatch):
"""#4425"""
monkeypatch.chdir(tmp_path)
config = cast(Config, FakeConfig("hello"))
t = TempPathFactory.from_config(config, _ispytest=_True)
assert t.getbasetemp().resolve() == (tmp_path / "hello").resol... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 64 | FakeConfig | ref | function | config = cast(Config, FakeConfig("hello"))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 65 | from_config | ref | function | t = TempPathFactory.from_config(config, _ispytest=True)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py | testing/test_tmpdir.py | 66 | getbasetemp | ref | function | assert t.getbasetemp().resolve() == (tmp_path / "hello").resolve()
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.