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_mark.py | testing/test_mark.py | 332 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 333 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 341 | inline_run | ref | function | rec = pytester.inline_run()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 342 | listoutcomes | ref | function | passed, skipped, fail = rec.listoutcomes()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 347 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 376 | test_keyword_option_wrong_arguments | def | function | def test_keyword_option_wrong_arguments(
expr: str, expected_error: str, pytester: Pytester, capsys
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 379 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 385 | inline_run | ref | function | pytester.inline_run("-k", expr)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 386 | readouterr | ref | function | err = capsys.readouterr().err
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 390 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 393 | makepyfile | ref | function | py_file = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 401 | basename | ref | function | file_name = os.path.basename(py_file)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 402 | inline_run | ref | function | rec = pytester.inline_run(file_name + "::" + "test_func")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 403 | assertoutcome | ref | function | rec.assertoutcome(passed=3)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 406 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 408 | makepyfile | ref | function | py_file = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 418 | runpytest | ref | function | result = pytester.runpytest(py_file)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 419 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 429 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 431 | makepyfile | ref | function | py_file = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 445 | runpytest | ref | function | result = pytester.runpytest(py_file)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 449 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 451 | makepyfile | ref | function | py_file = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 465 | runpytest | ref | function | result = pytester.runpytest(py_file)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 468 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*3 passed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 471 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 472 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 474 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 487 | inline_genitems | ref | function | items, rec = pytester.inline_genitems(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 490 | iter_markers | ref | function | assert [x for x in item.iter_markers() if x.name == "a"]
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 492 | test_mark_decorator_subclass_does_not_propagate_to_base | def | class | |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 495 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 510 | inline_genitems | ref | function | items, rec = pytester.inline_genitems(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 511 | assert_markers | ref | function | self.assert_markers(items, test_foo=("a", "b"), test_bar=("a",))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 513 | test_mark_should_not_pass_to_siebling_class | def | class | |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 515 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 533 | inline_genitems | ref | function | items, rec = pytester.inline_genitems(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 537 | iter_markers | ref | function | assert not list(base_item.iter_markers(name="b"))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 538 | iter_markers | ref | function | assert not list(sub_item_other.iter_markers(name="b"))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 539 | iter_markers | ref | function | assert list(sub_item.iter_markers(name="b"))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 541 | test_mark_decorator_baseclasses_merged | def | class | |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 542 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 561 | inline_genitems | ref | function | items, rec = pytester.inline_genitems(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 562 | assert_markers | ref | function | self.assert_markers(items, test_foo=("a", "b", "c"), test_bar=("a", "b", "d"))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 564 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 565 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 580 | inline_genitems | ref | function | items, rec = pytester.inline_genitems(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 582 | get_closest_marker | ref | function | has_own_marker = has_own.get_closest_marker("c")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 583 | get_closest_marker | ref | function | has_inherited_marker = has_inherited.get_closest_marker("c")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 588 | get_closest_marker | ref | function | assert has_own.get_closest_marker("missing") is None
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 590 | test_mark_with_wrong_marker | def | function | def test_mark_with_wrong_marker(self, pytester: Pytester) -> None:
reprec = pytester.inline_runsource(
"""
import pytest
class pytestmark(object):
pass
def test_func():
pass
"""
)
valu... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 591 | inline_runsource | ref | function | reprec = pytester.inline_runsource(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 600 | getfailedcollections | ref | function | values = reprec.getfailedcollections()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 604 | test_mark_dynamically_in_funcarg | def | function | def test_mark_dynamically_in_funcarg(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
import pytest
@pytest.fixture
def arg(request):
request.applymarker(pytest.mark.hello)
def pytest_terminal_summary(terminalreporter):... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 605 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 616 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 622 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 623 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["keyword: *hello*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 625 | test_no_marker_match_on_unmarked_names | def | function | def test_no_marker_match_on_unmarked_names(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""
import pytest
@pytest.mark.shouldmatch
def test_marked():
assert 1
def test_unmarked():
assert 1
"""... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 626 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 637 | inline_run | ref | function | reprec = pytester.inline_run("-m", "test_unmarked", p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 638 | listoutcomes | ref | function | passed, skipped, failed = reprec.listoutcomes()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 640 | getcalls | ref | function | dlist = reprec.getcalls("pytest_deselected")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 644 | test_keywords_at_node_level | def | function | def test_keywords_at_node_level(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.fixture(scope="session", autouse=_True)
def some(request):
request.keywords["hello"] = 42
assert "world" not in re... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 645 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 663 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 664 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 666 | test_keyword_added_for_session | def | function | def test_keyword_added_for_session(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
import pytest
def pytest_collection_modifyitems(session):
session.add_marker("mark1")
session.add_marker(pytest.mark.mark2)
ses... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 667 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 678 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 691 | inline_run | ref | function | reprec = pytester.inline_run("-m", "mark1")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 692 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 694 | assert_markers | def | function | def assert_markers(self, items, **expected) -> None:
"""Assert that given items have expected marker names applied to them.
expected should be a dict of (item name -> seq of expected marker names).
Note: this could be moved to ``pytester`` if proven to be useful
to other modules.
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 703 | iter_markers | ref | function | markers = {m.name for m in items[name].iter_markers()}
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 706 | filterwarnings | ref | function | @pytest.mark.filterwarnings("ignore")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 707 | test_mark_from_parameters | def | function | def test_mark_from_parameters(self, pytester: Pytester) -> None:
"""#1540"""
pytester.makepyfile(
"""
import pytest
pytestmark = pytest.mark.skipif(_True, reason='skip all')
# skipifs inside fixture params
params = [pytest.mark.skipif(_Fa... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 709 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 728 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 729 | assertoutcome | ref | function | reprec.assertoutcome(skipped=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 731 | test_reevaluate_dynamic_expr | def | function | def test_reevaluate_dynamic_expr(self, pytester: Pytester) -> None:
"""#7360"""
py_file1 = pytester.makepyfile(
test_reevaluate_dynamic_expr1="""
import pytest
skip = _True
@pytest.mark.skipif("skip")
def test_should_skip():
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 733 | makepyfile | ref | function | py_file1 = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 744 | makepyfile | ref | function | py_file2 = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 756 | basename | ref | function | file_name1 = os.path.basename(py_file1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 757 | basename | ref | function | file_name2 = os.path.basename(py_file2)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 758 | inline_run | ref | function | reprec = pytester.inline_run(file_name1, file_name2)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 759 | assertoutcome | ref | function | reprec.assertoutcome(passed=1, skipped=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 762 | TestKeywordSelection | def | class | test_select_simple test_select_extra_keywords test_select_starton test_keyword_extra test_keyword_extra_dash test_no_magic_values test_no_match_directories_outside_the_suite |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 763 | test_select_simple | def | function | def test_select_simple(self, pytester: Pytester) -> None:
file_test = pytester.makepyfile(
"""
def test_one():
assert 0
class TestClass(object):
def test_method_one(self):
assert 42 == 43
"""
)
d... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 764 | makepyfile | ref | function | file_test = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 774 | check | def | function | def check(keyword, name):
reprec = pytester.inline_run("-s", "-k", keyword, file_test)
passed, skipped, failed = reprec.listoutcomes()
assert len(failed) == 1
assert failed[0].nodeid.split("::")[-1] == name
assert len(reprec.getcalls("pytest_deselected... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 775 | inline_run | ref | function | reprec = pytester.inline_run("-s", "-k", keyword, file_test)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 776 | listoutcomes | ref | function | passed, skipped, failed = reprec.listoutcomes()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 779 | getcalls | ref | function | assert len(reprec.getcalls("pytest_deselected")) == 1
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 782 | check | ref | function | check(keyword, "test_one")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 783 | check | ref | function | check("TestClass and test", "test_method_one")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 785 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 796 | test_select_extra_keywords | def | function | def test_select_extra_keywords(self, pytester: Pytester, keyword) -> None:
p = pytester.makepyfile(
test_select="""
def test_1():
pass
class TestClass(object):
def test_2(self):
pass
"""
)
pyteste... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 797 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 806 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_mark.py | testing/test_mark.py | 817 | inline_run | ref | function | reprec = pytester.inline_run(p.parent, "-s", "-k", keyword)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.