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_config.py | testing/test_config.py | 588 | test_getoption | def | function | def test_getoption(self, pytester: Pytester) -> None:
config = pytester.parseconfig()
with pytest.raises(ValueError):
config.getvalue("x")
assert config.getoption("x", 1) == 1
def test_getconftest_pathlist(self, pytester: Pytester, tmp_path: Path) -> None:
somepath =... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 589 | parseconfig | ref | function | config = pytester.parseconfig()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 590 | raises | ref | function | with pytest.raises(ValueError):
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 591 | getvalue | ref | function | config.getvalue("x")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 592 | getoption | ref | function | assert config.getoption("x", 1) == 1
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 594 | test_getconftest_pathlist | def | function | def test_getconftest_pathlist(self, pytester: Pytester, tmp_path: Path) -> None:
somepath = tmp_path.joinpath("x", "y", "z")
p = tmp_path.joinpath("conftest.py")
p.write_text(f"mylist = {['.', os.fspath(somepath)]}")
config = pytester.parseconfigure(p)
assert (
co... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 598 | parseconfigure | ref | function | config = pytester.parseconfigure(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 600 | _getconftest_pathlist | ref | function | config._getconftest_pathlist("notexist", path=tmp_path, rootpath=tmp_path)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 604 | _getconftest_pathlist | ref | function | config._getconftest_pathlist("mylist", path=tmp_path, rootpath=tmp_path)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 612 | parametrize | ref | function | @pytest.mark.parametrize("maybe_type", ["not passed", "None", '"string"'])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 613 | test_addini | def | function | def test_addini(self, pytester: Pytester, maybe_type: str) -> None:
if maybe_type == "not passed":
type_string = ""
else:
type_string = f", {maybe_type}"
pytester.makeconftest(
f"""
def pytest_addoption(parser):
parser.addini("... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 619 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 625 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 631 | parseconfig | ref | function | config = pytester.parseconfig()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 632 | getini | ref | function | val = config.getini("myname")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 634 | raises | ref | function | pytest.raises(ValueError, config.getini, "other")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 636 | parametrize | ref | function | @pytest.mark.parametrize("config_type", ["ini", "pyproject"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 637 | parametrize | ref | function | @pytest.mark.parametrize("ini_type", ["paths", "pathlist"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 638 | test_addini_paths | def | function | def test_addini_paths(
self, pytester: Pytester, config_type: str, ini_type: str
) -> None:
pytester.makeconftest(
f"""
def pytest_addoption(parser):
parser.addini("paths", "my new ini value", type="{ini_type}")
parser.addini("abc", "abc va... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 641 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 649 | makeini | ref | function | inipath = pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 656 | makepyprojecttoml | ref | function | inipath = pytester.makepyprojecttoml(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 662 | parseconfig | ref | function | config = pytester.parseconfig()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 663 | getini | ref | function | values = config.getini("paths")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 667 | raises | ref | function | pytest.raises(ValueError, config.getini, "other")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 669 | make_conftest_for_args | def | function | def make_conftest_for_args(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
def pytest_addoption(parser):
parser.addini("args", "new args", type="args")
parser.addini("a2", "", "args", default="1 2 3".split())
"""
)
de... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 670 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 678 | test_addini_args_ini_files | def | function | def test_addini_args_ini_files(self, pytester: Pytester) -> None:
self.make_conftest_for_args(pytester)
pytester.makeini(
"""
[pytest]
args=123 "123 hello" "this"
"""
)
self.check_config_args(pytester)
def test_addini_args_pyprojec... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 679 | make_conftest_for_args | ref | function | self.make_conftest_for_args(pytester)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 680 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 686 | check_config_args | ref | function | self.check_config_args(pytester)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 688 | test_addini_args_pyproject_toml | def | function | def test_addini_args_pyproject_toml(self, pytester: Pytester) -> None:
self.make_conftest_for_args(pytester)
pytester.makepyprojecttoml(
"""
[tool.pytest.ini_options]
args = ["123", "123 hello", "this"]
"""
)
self.check_config_args(pyte... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 689 | make_conftest_for_args | ref | function | self.make_conftest_for_args(pytester)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 690 | makepyprojecttoml | ref | function | pytester.makepyprojecttoml(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 696 | check_config_args | ref | function | self.check_config_args(pytester)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 698 | check_config_args | def | function | def check_config_args(self, pytester: Pytester) -> None:
config = pytester.parseconfig()
values = config.getini("args")
assert values == ["123", "123 hello", "this"]
values = config.getini("a2")
assert values == list("123")
def make_conftest_for_linelist(self, pytester: ... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 699 | parseconfig | ref | function | config = pytester.parseconfig()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 700 | getini | ref | function | values = config.getini("args")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 702 | getini | ref | function | values = config.getini("a2")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 705 | make_conftest_for_linelist | def | function | def make_conftest_for_linelist(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
def pytest_addoption(parser):
parser.addini("xy", "", type="linelist")
parser.addini("a2", "", "linelist")
"""
)
def test_addini_linelist_... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 706 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 714 | test_addini_linelist_ini_files | def | function | def test_addini_linelist_ini_files(self, pytester: Pytester) -> None:
self.make_conftest_for_linelist(pytester)
pytester.makeini(
"""
[pytest]
xy= 123 345
second line
"""
)
self.check_config_linelist(pytester)
def test_... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 715 | make_conftest_for_linelist | ref | function | self.make_conftest_for_linelist(pytester)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 716 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 723 | check_config_linelist | ref | function | self.check_config_linelist(pytester)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 725 | test_addini_linelist_pprojecttoml | def | function | def test_addini_linelist_pprojecttoml(self, pytester: Pytester) -> None:
self.make_conftest_for_linelist(pytester)
pytester.makepyprojecttoml(
"""
[tool.pytest.ini_options]
xy = ["123 345", "second line"]
"""
)
self.check_config_linelist(py... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 726 | make_conftest_for_linelist | ref | function | self.make_conftest_for_linelist(pytester)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 727 | makepyprojecttoml | ref | function | pytester.makepyprojecttoml(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 733 | check_config_linelist | ref | function | self.check_config_linelist(pytester)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 735 | check_config_linelist | def | function | def check_config_linelist(self, pytester: Pytester) -> None:
config = pytester.parseconfig()
values = config.getini("xy")
assert len(values) == 2
assert values == ["123 345", "second line"]
values = config.getini("a2")
assert values == []
@pytest.mark.parametrize... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 736 | parseconfig | ref | function | config = pytester.parseconfig()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 737 | getini | ref | function | values = config.getini("xy")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 740 | getini | ref | function | values = config.getini("a2")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 743 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 746 | test_addini_bool | def | function | def test_addini_bool(
self, pytester: Pytester, str_val: str, bool_val: bool
) -> None:
pytester.makeconftest(
"""
def pytest_addoption(parser):
parser.addini("strip", "", type="bool", default=_True)
"""
)
if str_val != "no-ini":
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 749 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 756 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 763 | parseconfig | ref | function | config = pytester.parseconfig()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 764 | getini | ref | function | assert config.getini("strip") is bool_val
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 766 | test_addinivalue_line_existing | def | function | def test_addinivalue_line_existing(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
def pytest_addoption(parser):
parser.addini("xy", "", type="linelist")
"""
)
pytester.makeini(
"""
[pytest]
xy=... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 767 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 773 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 779 | parseconfig | ref | function | config = pytester.parseconfig()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 780 | getini | ref | function | values = config.getini("xy")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 783 | addinivalue_line | ref | function | config.addinivalue_line("xy", "456")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 784 | getini | ref | function | values = config.getini("xy")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 788 | test_addinivalue_line_new | def | function | def test_addinivalue_line_new(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
def pytest_addoption(parser):
parser.addini("xy", "", type="linelist")
"""
)
config = pytester.parseconfig()
assert not config.getini("xy")
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 789 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 795 | parseconfig | ref | function | config = pytester.parseconfig()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 796 | getini | ref | function | assert not config.getini("xy")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 797 | addinivalue_line | ref | function | config.addinivalue_line("xy", "456")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 798 | getini | ref | function | values = config.getini("xy")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 801 | addinivalue_line | ref | function | config.addinivalue_line("xy", "123")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 802 | getini | ref | function | values = config.getini("xy")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 806 | test_confcutdir_check_isdir | def | function | def test_confcutdir_check_isdir(self, pytester: Pytester) -> None:
"""Give an error if --confcutdir is not a valid directory (#2078)"""
exp_match = r"^--confcutdir must be a directory, given: "
with pytest.raises(pytest.UsageError, match=exp_match):
pytester.parseconfig("--confcu... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 809 | raises | ref | function | with pytest.raises(pytest.UsageError, match=exp_match):
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 810 | parseconfig | ref | function | pytester.parseconfig("--confcutdir", pytester.path.joinpath("file"))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 811 | raises | ref | function | with pytest.raises(pytest.UsageError, match=exp_match):
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 812 | parseconfig | ref | function | pytester.parseconfig("--confcutdir", pytester.path.joinpath("inexistant"))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 815 | parseconfig | ref | function | config = pytester.parseconfig("--confcutdir", p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 816 | getoption | ref | function | assert config.getoption("confcutdir") == str(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 818 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 834 | test_iter_rewritable_modules | def | function | def test_iter_rewritable_modules(self, names, expected) -> None:
assert list(_iter_rewritable_modules(names)) == expected
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 835 | _iter_rewritable_modules | ref | function | assert list(_iter_rewritable_modules(names)) == expected
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 838 | TestConfigFromdictargs | def | class | test_basic_behavior test_invocation_params_args test_inifilename |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 839 | test_basic_behavior | def | function | def test_basic_behavior(self, _sys_snapshot) -> None:
option_dict = {"verbose": 444, "foo": "bar", "capture": "no"}
args = ["a", "b"]
config = Config.fromdictargs(option_dict, args)
with pytest.raises(AssertionError):
config.parse(["should refuse to parse again"])
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 843 | fromdictargs | ref | function | config = Config.fromdictargs(option_dict, args)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 844 | raises | ref | function | with pytest.raises(AssertionError):
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 845 | parse | ref | function | config.parse(["should refuse to parse again"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 851 | test_invocation_params_args | def | function | def test_invocation_params_args(self, _sys_snapshot) -> None:
"""Show that fromdictargs can handle args in their "orig" format"""
option_dict: Dict[str, object] = {}
args = ["-vvvv", "-s", "a", "b"]
config = Config.fromdictargs(option_dict, args)
assert config.args == ["a", ... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 856 | fromdictargs | ref | function | config = Config.fromdictargs(option_dict, args)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 862 | test_inifilename | def | function | def test_inifilename(self, tmp_path: Path) -> None:
d1 = tmp_path.joinpath("foo")
d1.mkdir()
p1 = d1.joinpath("bar.ini")
p1.touch()
p1.write_text(
textwrap.dedent(
"""\
[pytest]
name = value
"""
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 892 | context | ref | function | with MonkeyPatch.context() as mp:
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 894 | fromdictargs | ref | function | config = Config.fromdictargs(option_dict, ())
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 895 | absolutepath | ref | function | inipath = absolutepath(inifilename)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 907 | test_options_on_small_file_do_not_blow_up | def | function | def test_options_on_small_file_do_not_blow_up(pytester: Pytester) -> None:
def runfiletest(opts: Sequence[str]) -> None:
reprec = pytester.inline_run(*opts)
passed, skipped, failed = reprec.countoutcomes()
assert failed == 2
assert skipped == passed == 0
path = str(
pyte... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 908 | runfiletest | def | function | def runfiletest(opts: Sequence[str]) -> None:
reprec = pytester.inline_run(*opts)
passed, skipped, failed = reprec.countoutcomes()
assert failed == 2
assert skipped == passed == 0
path = str(
pytester.makepyfile(
"""
def test_f1(): assert 0
de... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 909 | inline_run | ref | function | reprec = pytester.inline_run(*opts)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 910 | countoutcomes | ref | function | passed, skipped, failed = reprec.countoutcomes()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py | testing/test_config.py | 915 | 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.