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_skipping.py | testing/test_skipping.py | 210 | joinpath | ref | function | foo = root.joinpath("foo")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 211 | mkdir | ref | function | foo.mkdir()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 212 | joinpath | ref | function | foo.joinpath("__init__.py").touch()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 212 | touch | ref | function | foo.joinpath("__init__.py").touch()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 213 | joinpath | ref | function | foo.joinpath("conftest.py").write_text(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 213 | write_text | ref | function | foo.joinpath("conftest.py").write_text(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 223 | joinpath | ref | function | foo.joinpath("test_foo.py").write_text(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 223 | write_text | ref | function | foo.joinpath("test_foo.py").write_text(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 234 | joinpath | ref | function | bar = root.joinpath("bar")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 235 | mkdir | ref | function | bar.mkdir()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 236 | joinpath | ref | function | bar.joinpath("__init__.py").touch()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 236 | touch | ref | function | bar.joinpath("__init__.py").touch()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 237 | joinpath | ref | function | bar.joinpath("conftest.py").write_text(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 237 | write_text | ref | function | bar.joinpath("conftest.py").write_text(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 247 | joinpath | ref | function | bar.joinpath("test_bar.py").write_text(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 247 | write_text | ref | function | bar.joinpath("test_bar.py").write_text(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 259 | inline_run | ref | function | reprec = pytester.inline_run("-vs", "--capture=no")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 260 | assertoutcome | ref | function | reprec.assertoutcome(skipped=3)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 262 | test_skipif_markeval_namespace_ValueError | def | function | def test_skipif_markeval_namespace_ValueError(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
import pytest
def pytest_markeval_namespace():
return _True
"""
)
p = pytester.makepyfile(
"""
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 263 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 271 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 280 | runpytest | ref | function | res = pytester.runpytest(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 282 | fnmatch_lines | ref | function | res.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 289 | TestXFail | def | class | test_xfail_simple test_xfail_xpassed test_xfail_using_platform test_xfail_xpassed_strict test_xfail_run_anyway test_xfail_run_with_skip_mark test_xfail_evalfalse_but_fails test_xfail_not_report_default test_xfail_not_run_xfail_reporting test_xfail_not_run_no_setup_run test_xfail_xpass test_xfail_imperative test_xfail_i... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 290 | parametrize | ref | function | @pytest.mark.parametrize("strict", [True, False])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 291 | test_xfail_simple | def | function | def test_xfail_simple(self, pytester: Pytester, strict: bool) -> None:
item = pytester.getitem(
"""
import pytest
@pytest.mark.xfail(strict=%s)
def test_func():
assert 0
"""
% strict
)
reports = runtestprotoc... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 292 | getitem | ref | function | item = pytester.getitem(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 301 | runtestprotocol | ref | function | reports = runtestprotocol(item, log=False)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 307 | test_xfail_xpassed | def | function | def test_xfail_xpassed(self, pytester: Pytester) -> None:
item = pytester.getitem(
"""
import pytest
@pytest.mark.xfail(reason="this is an xfail")
def test_func():
assert 1
"""
)
reports = runtestprotocol(item, log=_Fals... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 308 | getitem | ref | function | item = pytester.getitem(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 316 | runtestprotocol | ref | function | reports = runtestprotocol(item, log=False)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 322 | test_xfail_using_platform | def | function | def test_xfail_using_platform(self, pytester: Pytester) -> None:
"""Verify that platform can be used with xfail statements."""
item = pytester.getitem(
"""
import pytest
@pytest.mark.xfail("platform.platform() == platform.platform()")
def test_func():
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 324 | getitem | ref | function | item = pytester.getitem(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 332 | runtestprotocol | ref | function | reports = runtestprotocol(item, log=False)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 337 | test_xfail_xpassed_strict | def | function | def test_xfail_xpassed_strict(self, pytester: Pytester) -> None:
item = pytester.getitem(
"""
import pytest
@pytest.mark.xfail(strict=_True, reason="nope")
def test_func():
assert 1
"""
)
reports = runtestprotocol(item, ... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 338 | getitem | ref | function | item = pytester.getitem(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 346 | runtestprotocol | ref | function | reports = runtestprotocol(item, log=False)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 353 | test_xfail_run_anyway | def | function | def test_xfail_run_anyway(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.mark.xfail
def test_func():
assert 0
def test_func2():
pytest.xfail("hello")
"""
)
r... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 354 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 364 | runpytest | ref | function | result = pytester.runpytest("--runxfail")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 365 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 369 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 382 | test_xfail_run_with_skip_mark | def | function | def test_xfail_run_with_skip_mark(
self, pytester: Pytester, test_input, expected
) -> None:
pytester.makepyfile(
test_sample="""
import pytest
@pytest.mark.skip
def test_skip_location() -> None:
assert 0
"""
)
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 385 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 393 | runpytest | ref | function | result = pytester.runpytest(*test_input)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 394 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(expected)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 396 | test_xfail_evalfalse_but_fails | def | function | def test_xfail_evalfalse_but_fails(self, pytester: Pytester) -> None:
item = pytester.getitem(
"""
import pytest
@pytest.mark.xfail('_False')
def test_func():
assert 0
"""
)
reports = runtestprotocol(item, log=_False)
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 397 | getitem | ref | function | item = pytester.getitem(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 405 | runtestprotocol | ref | function | reports = runtestprotocol(item, log=False)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 411 | test_xfail_not_report_default | def | function | def test_xfail_not_report_default(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
test_one="""
import pytest
@pytest.mark.xfail
def test_this():
assert 0
"""
)
pytester.runpytest(p, "-v")
# result.std... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 412 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 420 | runpytest | ref | function | pytester.runpytest(p, "-v")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 425 | test_xfail_not_run_xfail_reporting | def | function | def test_xfail_not_run_xfail_reporting(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
test_one="""
import pytest
@pytest.mark.xfail(run=_False, reason="noway")
def test_this():
assert 0
@pytest.mark.xfail("_True", run=_... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 426 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 440 | runpytest | ref | function | result = pytester.runpytest(p, "-rx")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 441 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 451 | test_xfail_not_run_no_setup_run | def | function | def test_xfail_not_run_no_setup_run(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
test_one="""
import pytest
@pytest.mark.xfail(run=_False, reason="hello")
def test_this():
assert 0
def setup_module(mod):
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 452 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 462 | runpytest | ref | function | result = pytester.runpytest(p, "-rx")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 463 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 467 | test_xfail_xpass | def | function | def test_xfail_xpass(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
test_one="""
import pytest
@pytest.mark.xfail
def test_that():
assert 1
"""
)
result = pytester.runpytest(p, "-rX")
result.stdout.f... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 468 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 476 | runpytest | ref | function | result = pytester.runpytest(p, "-rX")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 477 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*XPASS*test_that*", "*1 xpassed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 480 | test_xfail_imperative | def | function | def test_xfail_imperative(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""
import pytest
def test_this():
pytest.xfail("hello")
"""
)
result = pytester.runpytest(p)
result.stdout.fnmatch_lines(["*1 xfailed*"])... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 481 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 488 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 489 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 xfailed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 490 | runpytest | ref | function | result = pytester.runpytest(p, "-rx")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 491 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*XFAIL*test_this*", "*reason:*hello*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 492 | runpytest | ref | function | result = pytester.runpytest(p, "--runxfail")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 493 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 pass*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 495 | test_xfail_imperative_in_setup_function | def | function | def test_xfail_imperative_in_setup_function(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""
import pytest
def setup_function(function):
pytest.xfail("hello")
def test_this():
assert 0
"""
)
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 496 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 506 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 507 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 xfailed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 508 | runpytest | ref | function | result = pytester.runpytest(p, "-rx")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 509 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*XFAIL*test_this*", "*reason:*hello*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 510 | runpytest | ref | function | result = pytester.runpytest(p, "--runxfail")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 511 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 518 | xtest_dynamic_xfail_set_during_setup | def | function | def xtest_dynamic_xfail_set_during_setup(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""
import pytest
def setup_function(function):
pytest.mark.xfail(function)
def test_this():
assert 0
def test_that... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 519 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 530 | runpytest | ref | function | result = pytester.runpytest(p, "-rxX")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 531 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*XFAIL*test_this*", "*XPASS*test_that*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 533 | test_dynamic_xfail_no_run | def | function | def test_dynamic_xfail_no_run(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""
import pytest
@pytest.fixture
def arg(request):
request.applymarker(pytest.mark.xfail(run=_False))
def test_this(arg):
ass... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 534 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 544 | runpytest | ref | function | result = pytester.runpytest(p, "-rxX")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 545 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*XFAIL*test_this*", "*NOTRUN*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 547 | test_dynamic_xfail_set_during_funcarg_setup | def | function | def test_dynamic_xfail_set_during_funcarg_setup(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""
import pytest
@pytest.fixture
def arg(request):
request.applymarker(pytest.mark.xfail)
def test_this2(arg):
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 548 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 558 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 559 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 xfailed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 561 | test_dynamic_xfail_set_during_runtest_failed | def | function | def test_dynamic_xfail_set_during_runtest_failed(self, pytester: Pytester) -> None:
# Issue #7486.
p = pytester.makepyfile(
"""
import pytest
def test_this(request):
request.node.add_marker(pytest.mark.xfail(reason="xfail"))
assert ... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 563 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 571 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 572 | assert_outcomes | ref | function | result.assert_outcomes(xfailed=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 574 | test_dynamic_xfail_set_during_runtest_passed_strict | def | function | def test_dynamic_xfail_set_during_runtest_passed_strict(
self, pytester: Pytester
) -> None:
# Issue #7486.
p = pytester.makepyfile(
"""
import pytest
def test_this(request):
request.node.add_marker(pytest.mark.xfail(reason="xfail", str... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 578 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 585 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_skipping.py | testing/test_skipping.py | 586 | assert_outcomes | ref | function | result.assert_outcomes(failed=1)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.