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_cacheprovider.py | testing/test_cacheprovider.py | 313 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 317 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 320 | runpytest | ref | function | result = pytester.runpytest("--ff")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 322 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 332 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 336 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 339 | runpytest | ref | function | result = pytester.runpytest("--lf", "--ff")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 341 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["test_b.py*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 342 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*test_a.py*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 348 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 358 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 359 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*2 failed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 360 | runpytest | ref | function | result = pytester.runpytest("--lf", p2)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 361 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 failed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 363 | makepyfile | ref | function | pytester.makepyfile(test_b="def test_b1(): assert 1")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 364 | runpytest | ref | function | result = pytester.runpytest("--lf", p2)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 365 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 366 | runpytest | ref | function | result = pytester.runpytest("--lf", p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 367 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 379 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 383 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 384 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*2 failed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 385 | runpytest | ref | function | result = pytester.runpytest("--lf", p2)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 386 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 failed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 387 | runpytest | ref | function | result = pytester.runpytest("--lf")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 388 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*2 failed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 391 | inline_runsource | ref | function | pytester.inline_runsource(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 399 | parseconfigure | ref | function | config = pytester.parseconfigure()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 408 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 419 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 420 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 failed in*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 423 | makepyfile | ref | function | test_a = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 429 | makepyfile | ref | function | test_b = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 435 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 438 | runpytest | ref | function | result = pytester.runpytest("--lf")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 439 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 447 | runpytest | ref | function | result = pytester.runpytest(test_a, "--lf")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 448 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 456 | runpytest | ref | function | result = pytester.runpytest(test_b, "--lf")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 457 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 465 | runpytest | ref | function | result = pytester.runpytest("test_b.py::test_b1", "--lf")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 466 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 475 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 481 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 484 | runpytest | ref | function | result = pytester.runpytest("--ff")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 485 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 497 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 509 | setenv | ref | function | monkeypatch.setenv("FAILIMPORT", str(fail_import))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 510 | setenv | ref | function | monkeypatch.setenv("FAILTEST", str(fail_run))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 512 | runpytest | ref | function | pytester.runpytest("-q")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 513 | parseconfigure | ref | function | config = pytester.parseconfigure()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 518 | rlf | ref | function | lastfailed = rlf(fail_import=0, fail_run=0)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 521 | rlf | ref | function | lastfailed = rlf(fail_import=1, fail_run=0)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 524 | rlf | ref | function | lastfailed = rlf(fail_import=0, fail_run=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 530 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 541 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 556 | rlf | def | function | def rlf(fail_import, fail_run, args=()):
monkeypatch.setenv("FAILIMPORT", str(fail_import))
monkeypatch.setenv("FAILTEST", str(fail_run))
result = pytester.runpytest("-q", "--lf", *args)
config = pytester.parseconfigure()
assert config.cache is not No... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 557 | setenv | ref | function | monkeypatch.setenv("FAILIMPORT", str(fail_import))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 558 | setenv | ref | function | monkeypatch.setenv("FAILTEST", str(fail_run))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 560 | runpytest | ref | function | result = pytester.runpytest("-q", "--lf", *args)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 561 | parseconfigure | ref | function | config = pytester.parseconfigure()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 566 | rlf | ref | function | result, lastfailed = rlf(fail_import=0, fail_run=0)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 568 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*3 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 570 | rlf | ref | function | result, lastfailed = rlf(fail_import=1, fail_run=0)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 573 | rlf | ref | function | result, lastfailed = rlf(fail_import=0, fail_run=0, args=("test_maybe2.py",))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 579 | rlf | ref | function | result, lastfailed = rlf(fail_import=0, fail_run=0, args=("test_maybe2.py",))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 581 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*2 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 583 | test_lastfailed_creates_cache_when_needed | def | function | def test_lastfailed_creates_cache_when_needed(self, pytester: Pytester) -> None:
# Issue #1342
pytester.makepyfile(test_empty="")
pytester.runpytest("-q", "--lf")
assert not os.path.exists(".pytest_cache/v/cache/lastfailed")
pytester.makepyfile(test_successful="def test_succ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 585 | makepyfile | ref | function | pytester.makepyfile(test_empty="")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 586 | runpytest | ref | function | pytester.runpytest("-q", "--lf")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 589 | makepyfile | ref | function | pytester.makepyfile(test_successful="def test_success():\n assert True")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 590 | runpytest | ref | function | pytester.runpytest("-q", "--lf")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 593 | makepyfile | ref | function | pytester.makepyfile(test_errored="def test_error():\n assert False")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 594 | runpytest | ref | function | pytester.runpytest("-q", "--lf")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 597 | test_xfail_not_considered_failure | def | function | def test_xfail_not_considered_failure(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.mark.xfail
def test(): assert 0
"""
)
result = pytester.runpytest()
result.stdout.fnmatch_lines(["*1 xfailed... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 598 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 605 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 606 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 xfailed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 607 | get_cached_last_failed | ref | function | assert self.get_cached_last_failed(pytester) == []
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 609 | test_xfail_strict_considered_failure | def | function | def test_xfail_strict_considered_failure(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.mark.xfail(strict=_True)
def test(): pass
"""
)
result = pytester.runpytest()
result.stdout.fnmatch_lines... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 610 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 617 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 618 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 failed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 619 | get_cached_last_failed | ref | function | assert self.get_cached_last_failed(pytester) == [
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 623 | parametrize | ref | function | @pytest.mark.parametrize("mark", ["mark.xfail", "mark.skip"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 624 | test_failed_changed_to_xfail_or_skip | def | function | def test_failed_changed_to_xfail_or_skip(
self, pytester: Pytester, mark: str
) -> None:
pytester.makepyfile(
"""
import pytest
def test(): assert 0
"""
)
result = pytester.runpytest()
assert self.get_cached_last_failed(pytester... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.