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_mark.py | testing/test_mark.py | 111 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 120 | inline_run | ref | function | rec = pytester.inline_run("--strict-markers", "-m", "a1")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 121 | assertoutcome | ref | function | rec.assertoutcome(passed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 124 | test_marker_without_description | def | function | def test_marker_without_description(pytester: Pytester) -> None:
pytester.makefile(
".cfg",
setup="""
[tool:pytest]
markers=slow
""",
)
pytester.makeconftest(
"""
import pytest
pytest.mark.xfail('FAIL')
"""
)
ftdir = pytester.mkdir("ft1... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 125 | makefile | ref | function | pytester.makefile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 132 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 139 | joinpath | ref | function | pytester.path.joinpath("conftest.py").replace(ftdir.joinpath("conftest.py"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 139 | joinpath | ref | function | pytester.path.joinpath("conftest.py").replace(ftdir.joinpath("conftest.py"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 140 | runpytest | ref | function | rec = pytester.runpytest("--strict-markers")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 141 | assert_outcomes | ref | function | rec.assert_outcomes()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 144 | test_markers_option_with_plugin_in_current_dir | def | function | def test_markers_option_with_plugin_in_current_dir(pytester: Pytester) -> None:
pytester.makeconftest('pytest_plugins = "flip_flop"')
pytester.makepyfile(
flip_flop="""\
def pytest_configure(config):
config.addinivalue_line("markers", "flip:flop")
def pytest_generate_tests(m... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 145 | makeconftest | ref | function | pytester.makeconftest('pytest_plugins = "flip_flop"')
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 146 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 158 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 166 | runpytest | ref | function | result = pytester.runpytest("--markers")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 167 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*flip*flop*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 170 | test_mark_on_pseudo_function | def | function | def test_mark_on_pseudo_function(pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.mark.r(lambda x: 0/0)
def test_hello():
pass
"""
)
reprec = pytester.inline_run()
reprec.assertoutcome(passed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 171 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 180 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 181 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 184 | parametrize | ref | function | @pytest.mark.parametrize("option_name", ["--strict-markers", "--strict"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 185 | test_strict_prohibits_unregistered_markers | def | function | def test_strict_prohibits_unregistered_markers(
pytester: Pytester, option_name: str
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 188 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 196 | runpytest | ref | function | result = pytester.runpytest(option_name)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 198 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 203 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 214 | test_mark_option | def | function | def test_mark_option(
expr: str, expected_passed: List[Optional[str]], pytester: Pytester
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 217 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 228 | inline_run | ref | function | rec = pytester.inline_run("-m", expr)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 229 | listoutcomes | ref | function | passed, skipped, fail = rec.listoutcomes()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 234 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 238 | test_mark_option_custom | def | function | def test_mark_option_custom(
expr: str, expected_passed: List[str], pytester: Pytester
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 241 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 250 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 258 | inline_run | ref | function | rec = pytester.inline_run("-m", expr)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 259 | listoutcomes | ref | function | passed, skipped, fail = rec.listoutcomes()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 264 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 276 | test_keyword_option_custom | def | function | def test_keyword_option_custom(
expr: str, expected_passed: List[str], pytester: Pytester
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 279 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 293 | inline_run | ref | function | rec = pytester.inline_run("-k", expr)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 294 | listoutcomes | ref | function | passed, skipped, fail = rec.listoutcomes()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 299 | test_keyword_option_considers_mark | def | function | def test_keyword_option_considers_mark(pytester: Pytester) -> None:
pytester.copy_example("marks/marks_considered_keywords")
rec = pytester.inline_run("-k", "foo")
passed = rec.listoutcomes()[0]
assert len(passed) == 1
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 300 | copy_example | ref | function | pytester.copy_example("marks/marks_considered_keywords")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 301 | inline_run | ref | function | rec = pytester.inline_run("-k", "foo")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 302 | listoutcomes | ref | function | passed = rec.listoutcomes()[0]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 306 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 314 | test_keyword_option_parametrize | def | function | def test_keyword_option_parametrize(
expr: str, expected_passed: List[str], pytester: Pytester
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 317 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 325 | inline_run | ref | function | rec = pytester.inline_run("-k", expr)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 326 | listoutcomes | ref | function | passed, skipped, fail = rec.listoutcomes()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 331 | test_parametrize_with_module | def | function | def test_parametrize_with_module(pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.mark.parametrize("arg", [pytest,])
def test_func(arg):
pass
"""
)
rec = pytester.inline_run()
passed, skipped, fail = rec.listoutcomes()
expect... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 332 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 340 | inline_run | ref | function | rec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 341 | listoutcomes | ref | function | passed, skipped, fail = rec.listoutcomes()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 346 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 375 | test_keyword_option_wrong_arguments | def | function | def test_keyword_option_wrong_arguments(
expr: str, expected_error: str, pytester: Pytester, capsys
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 378 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 384 | inline_run | ref | function | pytester.inline_run("-k", expr)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 385 | readouterr | ref | function | err = capsys.readouterr().err
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 389 | test_parametrized_collected_from_command_line | def | function | def test_parametrized_collected_from_command_line(pytester: Pytester) -> None:
"""Parametrized test not collected if test named specified in command
line issue#649."""
py_file = pytester.makepyfile(
"""
import pytest
@pytest.mark.parametrize("arg", [None, 1.3, "2-3"])
def tes... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 392 | makepyfile | ref | function | py_file = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 400 | basename | ref | function | file_name = os.path.basename(py_file)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 401 | inline_run | ref | function | rec = pytester.inline_run(file_name + "::" + "test_func")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 402 | assertoutcome | ref | function | rec.assertoutcome(passed=3)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 405 | test_parametrized_collect_with_wrong_args | def | function | def test_parametrized_collect_with_wrong_args(pytester: Pytester) -> None:
"""Test collect parametrized func with wrong number of args."""
py_file = pytester.makepyfile(
"""
import pytest
@pytest.mark.parametrize('foo, bar', [(1, 2, 3)])
def test_func(foo, bar):
pass... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 407 | makepyfile | ref | function | py_file = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 417 | runpytest | ref | function | result = pytester.runpytest(py_file)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 418 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 428 | test_parametrized_with_kwargs | def | function | def test_parametrized_with_kwargs(pytester: Pytester) -> None:
"""Test collect parametrized func with wrong number of args."""
py_file = pytester.makepyfile(
"""
import pytest
@pytest.fixture(params=[1,2])
def a(request):
return request.param
@pytest.mark.pa... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 430 | makepyfile | ref | function | py_file = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 444 | runpytest | ref | function | result = pytester.runpytest(py_file)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 448 | test_parametrize_iterator | def | function | def test_parametrize_iterator(pytester: Pytester) -> None:
"""`parametrize` should work with generators (#5354)."""
py_file = pytester.makepyfile(
"""\
import pytest
def gen():
yield 1
yield 2
yield 3
@pytest.mark.parametrize('a', gen())
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 450 | makepyfile | ref | function | py_file = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 464 | runpytest | ref | function | result = pytester.runpytest(py_file)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 467 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*3 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 470 | TestFunctional | def | class | test_merging_markers_deep test_mark_decorator_subclass_does_not_propagate_to_base test_mark_should_not_pass_to_siebling_class test_mark_decorator_baseclasses_merged test_mark_closest test_mark_with_wrong_marker test_mark_dynamically_in_funcarg test_no_marker_match_on_unmarked_names test_keywords_at_node_level test_keyw... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 471 | test_merging_markers_deep | def | function | def test_merging_markers_deep(self, pytester: Pytester) -> None:
# issue 199 - propagate markers into nested classes
p = pytester.makepyfile(
"""
import pytest
class TestA(object):
pytestmark = pytest.mark.a
def test_b(self):
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 473 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 486 | inline_genitems | ref | function | items, rec = pytester.inline_genitems(p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 489 | iter_markers | ref | function | assert [x for x in item.iter_markers() if x.name == "a"]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 491 | test_mark_decorator_subclass_does_not_propagate_to_base | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 494 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 509 | inline_genitems | ref | function | items, rec = pytester.inline_genitems(p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 510 | assert_markers | ref | function | self.assert_markers(items, test_foo=("a", "b"), test_bar=("a",))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 512 | test_mark_should_not_pass_to_siebling_class | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 514 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 532 | inline_genitems | ref | function | items, rec = pytester.inline_genitems(p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 536 | iter_markers | ref | function | assert not list(base_item.iter_markers(name="b"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 537 | iter_markers | ref | function | assert not list(sub_item_other.iter_markers(name="b"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 538 | iter_markers | ref | function | assert list(sub_item.iter_markers(name="b"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 540 | test_mark_decorator_baseclasses_merged | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 541 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 560 | inline_genitems | ref | function | items, rec = pytester.inline_genitems(p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 561 | assert_markers | ref | function | self.assert_markers(items, test_foo=("a", "b", "c"), test_bar=("a", "b", "d"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 563 | test_mark_closest | def | function | def test_mark_closest(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""
import pytest
@pytest.mark.c(location="class")
class Test:
@pytest.mark.c(location="function")
def test_has_own(self):
pa... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 564 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 579 | inline_genitems | ref | function | items, rec = pytester.inline_genitems(p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 581 | get_closest_marker | ref | function | has_own_marker = has_own.get_closest_marker("c")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 582 | get_closest_marker | ref | function | has_inherited_marker = has_inherited.get_closest_marker("c")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py | testing/test_mark.py | 587 | get_closest_marker | ref | function | assert has_own.get_closest_marker("missing") is None
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.