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_cacheprovider.py | testing/test_cacheprovider.py | 191 | test_cache_reportheader_external_abspath | def | function | def test_cache_reportheader_external_abspath(
pytester: Pytester, tmp_path_factory: TempPathFactory
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 194 | mktemp | ref | function | external_cache = tmp_path_factory.mktemp(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 198 | makepyfile | ref | function | pytester.makepyfile("def test_hello(): pass")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 199 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 207 | runpytest | ref | function | result = pytester.runpytest("-v")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 208 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines([f"cachedir: {external_cache}"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 211 | test_cache_show | def | function | def test_cache_show(pytester: Pytester) -> None:
result = pytester.runpytest("--cache-show")
assert result.ret == 0
result.stdout.fnmatch_lines(["*cache is empty*"])
pytester.makeconftest(
"""
def pytest_configure(config):
config.cache.set("my/name", [1,2,3])
conf... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 212 | runpytest | ref | function | result = pytester.runpytest("--cache-show")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 214 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*cache is empty*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 215 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 226 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 229 | runpytest | ref | function | result = pytester.runpytest("--cache-show")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 230 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 246 | runpytest | ref | function | result = pytester.runpytest("--cache-show", "*/hello")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 247 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 263 | TestLastFailed | def | class | test_lastfailed_usecase test_failedfirst_order test_lastfailed_failedfirst_order test_lastfailed_difference_invocations test_lastfailed_usecase_splice test_lastfailed_xpass test_non_serializable_parametrize test_terminal_report_lastfailed test_terminal_report_failedfirst test_lastfailed_collectfailure test_lastfailed_f... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 264 | test_lastfailed_usecase | def | function | def test_lastfailed_usecase(
self, pytester: Pytester, monkeypatch: MonkeyPatch
) -> None:
monkeypatch.setattr("sys.dont_write_bytecode", _True)
p = pytester.makepyfile(
"""
def test_1(): assert 0
def test_2(): assert 0
def test_3(): assert... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 268 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 275 | runpytest | ref | function | result = pytester.runpytest(str(p))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 276 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*2 failed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 277 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 284 | runpytest | ref | function | result = pytester.runpytest(str(p), "--lf")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 285 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 292 | runpytest | ref | function | result = pytester.runpytest(str(p), "--lf")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 293 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 301 | runpytest | ref | function | result = pytester.runpytest(str(p), "--lf", "--cache-clear")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 302 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 failed*2 passed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 307 | isdir | ref | function | if os.path.isdir(".pytest_cache"):
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 309 | runpytest | ref | function | result = pytester.runpytest("--lf", "--cache-clear")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 310 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 failed*2 passed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 312 | test_failedfirst_order | def | function | def test_failedfirst_order(self, pytester: Pytester) -> None:
pytester.makepyfile(
test_a="def test_always_passes(): pass",
test_b="def test_always_fails(): assert 0",
)
result = pytester.runpytest()
# Test order will be collection order; alphabetical
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 313 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 317 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 319 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["test_a.py*", "test_b.py*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 320 | runpytest | ref | function | result = pytester.runpytest("--ff")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 322 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 331 | test_lastfailed_failedfirst_order | def | function | def test_lastfailed_failedfirst_order(self, pytester: Pytester) -> None:
pytester.makepyfile(
test_a="def test_always_passes(): assert 1",
test_b="def test_always_fails(): assert 0",
)
result = pytester.runpytest()
# Test order will be collection order; alphab... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 332 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 336 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 338 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["test_a.py*", "test_b.py*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 339 | runpytest | ref | function | result = pytester.runpytest("--lf", "--ff")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 341 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["test_b.py*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 342 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*test_a.py*")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 344 | test_lastfailed_difference_invocations | def | function | def test_lastfailed_difference_invocations(
self, pytester: Pytester, monkeypatch: MonkeyPatch
) -> None:
monkeypatch.setattr("sys.dont_write_bytecode", _True)
pytester.makepyfile(
test_a="""
def test_a1(): assert 0
def test_a2(): assert 1
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 348 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 358 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 359 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*2 failed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 360 | runpytest | ref | function | result = pytester.runpytest("--lf", p2)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 361 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 failed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 363 | makepyfile | ref | function | pytester.makepyfile(test_b="def test_b1(): assert 1")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 364 | runpytest | ref | function | result = pytester.runpytest("--lf", p2)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 365 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 passed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 366 | runpytest | ref | function | result = pytester.runpytest("--lf", p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 367 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 375 | test_lastfailed_usecase_splice | def | function | def test_lastfailed_usecase_splice(
self, pytester: Pytester, monkeypatch: MonkeyPatch
) -> None:
monkeypatch.setattr("sys.dont_write_bytecode", _True)
pytester.makepyfile(
"def test_1(): assert 0", test_something="def test_2(): assert 0"
)
p2 = pytester.path.... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 379 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 383 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 384 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*2 failed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 385 | runpytest | ref | function | result = pytester.runpytest("--lf", p2)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 386 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 failed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 387 | runpytest | ref | function | result = pytester.runpytest("--lf")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 388 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*2 failed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 390 | test_lastfailed_xpass | def | function | def test_lastfailed_xpass(self, pytester: Pytester) -> None:
pytester.inline_runsource(
"""
import pytest
@pytest.mark.xfail
def test_hello():
assert 1
"""
)
config = pytester.parseconfigure()
assert config.cache... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 391 | inline_runsource | ref | function | pytester.inline_runsource(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 399 | parseconfigure | ref | function | config = pytester.parseconfigure()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 404 | test_non_serializable_parametrize | def | function | def test_non_serializable_parametrize(self, pytester: Pytester) -> None:
"""Test that failed parametrized tests with unmarshable parameters
don't break pytest-cache.
"""
pytester.makepyfile(
r"""
import pytest
@pytest.mark.parametrize('val', [
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 408 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 419 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 420 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 failed in*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 422 | test_terminal_report_lastfailed | def | function | def test_terminal_report_lastfailed(self, pytester: Pytester) -> None:
test_a = pytester.makepyfile(
test_a="""
def test_a1(): pass
def test_a2(): pass
"""
)
test_b = pytester.makepyfile(
test_b="""
def test_b1(): assert 0
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 423 | makepyfile | ref | function | test_a = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 429 | makepyfile | ref | function | test_b = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 435 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 436 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["collected 4 items", "*2 failed, 2 passed in*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 438 | runpytest | ref | function | result = pytester.runpytest("--lf")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 439 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 447 | runpytest | ref | function | result = pytester.runpytest(test_a, "--lf")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 448 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 456 | runpytest | ref | function | result = pytester.runpytest(test_b, "--lf")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 457 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 465 | runpytest | ref | function | result = pytester.runpytest("test_b.py::test_b1", "--lf")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 466 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 474 | test_terminal_report_failedfirst | def | function | def test_terminal_report_failedfirst(self, pytester: Pytester) -> None:
pytester.makepyfile(
test_a="""
def test_a1(): assert 0
def test_a2(): pass
"""
)
result = pytester.runpytest()
result.stdout.fnmatch_lines(["collected 2 items", "*1 fa... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 475 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 481 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 482 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["collected 2 items", "*1 failed, 1 passed in*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 484 | runpytest | ref | function | result = pytester.runpytest("--ff")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 485 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 493 | test_lastfailed_collectfailure | def | function | def test_lastfailed_collectfailure(
self, pytester: Pytester, monkeypatch: MonkeyPatch
) -> None:
pytester.makepyfile(
test_maybe="""
import os
env = os.environ
if '1' == env['FAILIMPORT']:
raise ImportError('fail')
def... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 497 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 508 | rlf | def | function | def rlf(fail_import, fail_run):
monkeypatch.setenv("FAILIMPORT", str(fail_import))
monkeypatch.setenv("FAILTEST", str(fail_run))
pytester.runpytest("-q")
config = pytester.parseconfigure()
assert config.cache is not None
lastfailed = confi... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 509 | setenv | ref | function | monkeypatch.setenv("FAILIMPORT", str(fail_import))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 510 | setenv | ref | function | monkeypatch.setenv("FAILTEST", str(fail_run))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 512 | runpytest | ref | function | pytester.runpytest("-q")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 513 | parseconfigure | ref | function | config = pytester.parseconfigure()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 518 | rlf | ref | function | lastfailed = rlf(fail_import=0, fail_run=0)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 521 | rlf | ref | function | lastfailed = rlf(fail_import=1, fail_run=0)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 524 | rlf | ref | function | lastfailed = rlf(fail_import=0, fail_run=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 527 | test_lastfailed_failure_subset | def | function | def test_lastfailed_failure_subset(
self, pytester: Pytester, monkeypatch: MonkeyPatch
) -> None:
pytester.makepyfile(
test_maybe="""
import os
env = os.environ
if '1' == env['FAILIMPORT']:
raise ImportError('fail')
def ... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 530 | makepyfile | ref | function | pytester.makepyfile(
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.