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_junitxml.py | testing/test_junitxml.py | 1,518 | parse | ref | function | test_case = minidom.parse(str(path)).getElementsByTagName("testcase")[0]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,518 | getElementsByTagName | ref | function | test_case = minidom.parse(str(path)).getElementsByTagName("testcase")[0]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,521 | getAttribute | ref | function | test_case.getAttribute("url") == test_url
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,526 | test_record_testsuite_property | def | function | def test_record_testsuite_property(
pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,529 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,538 | run_and_parse | ref | function | result, dom = run_and_parse(family=xunit_family)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,540 | find_first_by_tag | ref | function | node = dom.find_first_by_tag("testsuite")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,541 | find_first_by_tag | ref | function | properties_node = node.find_first_by_tag("properties")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,542 | find_nth_by_tag | ref | function | p1_node = properties_node.find_nth_by_tag("property", 0)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,543 | find_nth_by_tag | ref | function | p2_node = properties_node.find_nth_by_tag("property", 1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,544 | assert_attr | ref | function | p1_node.assert_attr(name="stats", value="all good")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,545 | assert_attr | ref | function | p2_node.assert_attr(name="stats", value="10")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,548 | test_record_testsuite_property_junit_disabled | def | function | def test_record_testsuite_property_junit_disabled(pytester: Pytester) -> None:
pytester.makepyfile(
"""
def test_func1(record_testsuite_property):
record_testsuite_property("stats", "all good")
"""
)
result = pytester.runpytest()
assert result.ret == 0
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,549 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,555 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,559 | parametrize | ref | function | @pytest.mark.parametrize("junit", [True, False])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,560 | test_record_testsuite_property_type_checking | def | function | def test_record_testsuite_property_type_checking(
pytester: Pytester, junit: bool
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,563 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,570 | runpytest | ref | function | result = pytester.runpytest(*args)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,572 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,577 | parametrize | ref | function | @pytest.mark.parametrize("suite_name", ["my_suite", ""])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,579 | test_set_suite_name | def | function | def test_set_suite_name(
pytester: Pytester, suite_name: str, run_and_parse: RunAndParse, xunit_family: str
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,583 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,595 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,603 | run_and_parse | ref | function | result, dom = run_and_parse(family=xunit_family)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,605 | find_first_by_tag | ref | function | node = dom.find_first_by_tag("testsuite")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,606 | assert_attr | ref | function | node.assert_attr(name=expected)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,609 | test_escaped_skipreason_issue3533 | def | function | def test_escaped_skipreason_issue3533(
pytester: Pytester, run_and_parse: RunAndParse
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,612 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,620 | run_and_parse | ref | function | _, dom = run_and_parse()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,621 | find_first_by_tag | ref | function | node = dom.find_first_by_tag("testcase")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,622 | find_first_by_tag | ref | function | snode = node.find_first_by_tag("skipped")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,624 | assert_attr | ref | function | snode.assert_attr(message="1 <> 2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,628 | test_logging_passing_tests_disabled_does_not_log_test_output | def | function | def test_logging_passing_tests_disabled_does_not_log_test_output(
pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,631 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,641 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,653 | run_and_parse | ref | function | result, dom = run_and_parse(family=xunit_family)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,655 | find_first_by_tag | ref | function | node = dom.find_first_by_tag("testcase")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,656 | find_by_tag | ref | function | assert len(node.find_by_tag("system-err")) == 0
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,657 | find_by_tag | ref | function | assert len(node.find_by_tag("system-out")) == 0
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,661 | parametrize | ref | function | @pytest.mark.parametrize("junit_logging", ["no", "system-out", "system-err"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,662 | test_logging_passing_tests_disabled_logs_output_for_failing_test_issue5430 | def | function | def test_logging_passing_tests_disabled_logs_output_for_failing_test_issue5430(
pytester: Pytester,
junit_logging: str,
run_and_parse: RunAndParse,
xunit_family: str,
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,668 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,677 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,688 | run_and_parse | ref | function | result, dom = run_and_parse(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,692 | find_first_by_tag | ref | function | node = dom.find_first_by_tag("testcase")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,694 | find_by_tag | ref | function | assert len(node.find_by_tag("system-err")) == 0
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,695 | find_by_tag | ref | function | assert len(node.find_by_tag("system-out")) == 1
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,697 | find_by_tag | ref | function | assert len(node.find_by_tag("system-err")) == 1
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,698 | find_by_tag | ref | function | assert len(node.find_by_tag("system-out")) == 0
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,701 | find_by_tag | ref | function | assert len(node.find_by_tag("system-err")) == 0
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,702 | find_by_tag | ref | function | assert len(node.find_by_tag("system-out")) == 0
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 8 | test_item_fspath | def | function | def test_item_fspath(pytester: pytest.Pytester) -> None:
pytester.makepyfile("def test_func(): pass")
items, hookrec = pytester.inline_genitems()
assert len(items) == 1
(item,) = items
items2, hookrec = pytester.inline_genitems(item.nodeid)
(item2,) = items2
assert item2.name == item.name
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 9 | makepyfile | ref | function | pytester.makepyfile("def test_func(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 10 | inline_genitems | ref | function | items, hookrec = pytester.inline_genitems()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 13 | inline_genitems | ref | function | items2, hookrec = pytester.inline_genitems(item.nodeid)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 20 | test_testdir_testtmproot | def | function | def test_testdir_testtmproot(testdir: Testdir) -> None:
"""Check test_tmproot is a py.path attribute for backward compatibility."""
assert testdir.test_tmproot.check(dir=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 22 | check | ref | function | assert testdir.test_tmproot.check(dir=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 25 | test_testdir_makefile_dot_prefixes_extension_silently | def | function | def test_testdir_makefile_dot_prefixes_extension_silently(
testdir: Testdir,
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 29 | makefile | ref | function | p1 = testdir.makefile("foo.bar", "")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 33 | test_testdir_makefile_ext_none_raises_type_error | def | function | def test_testdir_makefile_ext_none_raises_type_error(testdir: Testdir) -> None:
"""For backwards compat #8192"""
with pytest.raises(TypeError):
testdir.makefile(None, "")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 35 | raises | ref | function | with pytest.raises(TypeError):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 36 | makefile | ref | function | testdir.makefile(None, "")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 39 | test_testdir_makefile_ext_empty_string_makes_file | def | function | def test_testdir_makefile_ext_empty_string_makes_file(testdir: Testdir) -> None:
"""For backwards compat #8192"""
p1 = testdir.makefile("", "")
assert "test_testdir_makefile" in str(p1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 41 | makefile | ref | function | p1 = testdir.makefile("", "")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 45 | attempt_symlink_to | def | function | def attempt_symlink_to(path: str, to_path: str) -> None:
"""Try to make a symlink from "path" to "to_path", skipping in case this platform
does not support it or we don't have sufficient privileges (common on Windows)."""
try:
Path(path).symlink_to(Path(to_path))
except OSError:
pytest.s... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 51 | skip | ref | function | pytest.skip("could not create symbolic link")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 54 | test_tmpdir_factory | def | function | def test_tmpdir_factory(
tmpdir_factory: TempdirFactory,
tmp_path_factory: pytest.TempPathFactory,
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 58 | getbasetemp | ref | function | assert str(tmpdir_factory.getbasetemp()) == str(tmp_path_factory.getbasetemp())
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 58 | getbasetemp | ref | function | assert str(tmpdir_factory.getbasetemp()) == str(tmp_path_factory.getbasetemp())
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 59 | mktemp | ref | function | dir = tmpdir_factory.mktemp("foo")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 63 | test_tmpdir_equals_tmp_path | def | function | def test_tmpdir_equals_tmp_path(tmpdir: LEGACY_PATH, tmp_path: Path) -> None:
assert Path(tmpdir) == tmp_path
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 67 | test_tmpdir_always_is_realpath | def | function | def test_tmpdir_always_is_realpath(pytester: pytest.Pytester) -> None:
# See test_tmp_path_always_is_realpath.
realtemp = pytester.mkdir("myrealtemp")
linktemp = pytester.path.joinpath("symlinktemp")
attempt_symlink_to(str(linktemp), str(realtemp))
p = pytester.makepyfile(
"""
def te... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 71 | attempt_symlink_to | ref | function | attempt_symlink_to(str(linktemp), str(realtemp))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 72 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 79 | runpytest | ref | function | result = pytester.runpytest("-s", p, "--basetemp=%s/bt" % linktemp)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 83 | test_cache_makedir | def | function | def test_cache_makedir(cache: pytest.Cache) -> None:
dir = cache.makedir("foo") # type: ignore[attr-defined]
assert dir.exists()
dir.remove()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 84 | makedir | ref | function | dir = cache.makedir("foo") # type: ignore[attr-defined]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 89 | test_fixturerequest_getmodulepath | def | function | def test_fixturerequest_getmodulepath(pytester: pytest.Pytester) -> None:
modcol = pytester.getmodulecol("def test_somefunc(): pass")
(item,) = pytester.genitems([modcol])
req = pytest.FixtureRequest(item, _ispytest=_True)
assert req.path == modcol.path
assert req.fspath == modcol.fspath # type: ig... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 90 | getmodulecol | ref | function | modcol = pytester.getmodulecol("def test_somefunc(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 91 | genitems | ref | function | (item,) = pytester.genitems([modcol])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 92 | FixtureRequest | ref | function | req = pytest.FixtureRequest(item, _ispytest=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 97 | TestFixtureRequestSessionScoped | def | class | session_request test_session_scoped_unavailable_attributes |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 98 | fixture | ref | function | @pytest.fixture(scope="session")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 99 | session_request | def | function | def session_request(self, request):
return request
def test_session_scoped_unavailable_attributes(self, session_request):
with pytest.raises(
AttributeError,
match="path not available in session-scoped context",
):
session_request.fspath
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 102 | test_session_scoped_unavailable_attributes | def | function | def test_session_scoped_unavailable_attributes(self, session_request):
with pytest.raises(
AttributeError,
match="path not available in session-scoped context",
):
session_request.fspath
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 103 | raises | ref | function | with pytest.raises(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 110 | parametrize | ref | function | @pytest.mark.parametrize("config_type", ["ini", "pyproject"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 111 | test_addini_paths | def | function | def test_addini_paths(pytester: pytest.Pytester, config_type: str) -> None:
pytester.makeconftest(
"""
def pytest_addoption(parser):
parser.addini("paths", "my new ini value", type="pathlist")
parser.addini("abc", "abc value")
"""
)
if config_type == "ini":
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 112 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 120 | makeini | ref | function | inipath = pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 127 | makepyprojecttoml | ref | function | inipath = pytester.makepyprojecttoml(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 133 | parseconfig | ref | function | config = pytester.parseconfig()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 134 | getini | ref | function | values = config.getini("paths")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 138 | raises | ref | function | pytest.raises(ValueError, config.getini, "other")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 141 | test_override_ini_paths | def | function | def test_override_ini_paths(pytester: pytest.Pytester) -> None:
pytester.makeconftest(
"""
def pytest_addoption(parser):
parser.addini("paths", "my new ini value", type="pathlist")"""
)
pytester.makeini(
"""
[pytest]
paths=blah.py"""
)
pytester.mak... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 142 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 147 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 152 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_legacypath.py | testing/test_legacypath.py | 161 | runpytest | ref | function | result = pytester.runpytest("--override-ini", "paths=foo/bar1.py foo/bar2.py", "-s")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.