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_junitxml.py | testing/test_junitxml.py | 1,521 | getAttribute | ref | function | test_case.getAttribute("url") == test_url
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,529 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,545 | assert_attr | ref | function | p2_node.assert_attr(name="stats", value="10")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,549 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,555 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,559 | parametrize | ref | function | @pytest.mark.parametrize("junit", [True, False])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,563 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,570 | runpytest | ref | function | result = pytester.runpytest(*args)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,572 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,577 | parametrize | ref | function | @pytest.mark.parametrize("suite_name", ["my_suite", ""])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,583 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,595 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,606 | assert_attr | ref | function | node.assert_attr(name=expected)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,612 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,620 | run_and_parse | ref | function | _, dom = run_and_parse()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,624 | assert_attr | ref | function | snode.assert_attr(message="1 <> 2")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,631 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,641 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,668 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,677 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_junitxml.py | testing/test_junitxml.py | 1,688 | run_and_parse | ref | function | result, dom = run_and_parse(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_link_resolve.py | testing/test_link_resolve.py | 12 | subst_path_windows | def | function | def subst_path_windows(filepath: Path):
for c in ascii_lowercase[7:]: # Create a subst drive from H-Z.
c += ":"
if not os.path.exists(c):
drive = c
break
else:
raise AssertionError("Unable to find suitable drive letter for subst.")
directory = filepath.paren... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_link_resolve.py | testing/test_link_resolve.py | 36 | subst_path_linux | def | function | def subst_path_linux(filepath: Path):
directory = filepath.parent
basename = filepath.name
target = directory / ".." / "sub2"
os.symlink(str(directory), str(target), target_is_directory=_True)
try:
filename = target / basename
yield filename
finally:
# We don't need to u... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_link_resolve.py | testing/test_link_resolve.py | 41 | symlink | ref | function | os.symlink(str(directory), str(target), target_is_directory=True)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_link_resolve.py | testing/test_link_resolve.py | 50 | test_link_resolve | def | function | def test_link_resolve(pytester: Pytester) -> None:
"""See: https://github.com/pytest-dev/pytest/issues/5965."""
sub1 = pytester.mkpydir("sub1")
p = sub1.joinpath("test_foo.py")
p.write_text(
textwrap.dedent(
"""
import pytest
def test_foo():
raise Assertio... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_link_resolve.py | testing/test_link_resolve.py | 52 | mkpydir | ref | function | sub1 = pytester.mkpydir("sub1")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_link_resolve.py | testing/test_link_resolve.py | 68 | subst | ref | function | with subst(p) as subst_p:
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_link_resolve.py | testing/test_link_resolve.py | 69 | runpytest | ref | function | result = pytester.runpytest(str(subst_p), "-v")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_link_resolve.py | testing/test_link_resolve.py | 79 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines([expect])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 14 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 17 | param | ref | function | pytest.param((None, ValueError)),
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 18 | param | ref | function | pytest.param((42, SystemExit)),
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 19 | param | ref | function | pytest.param((False, SystemExit)),
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 22 | test_wrap_session_notify_exception | def | function | def test_wrap_session_notify_exception(ret_exc, pytester: Pytester) -> None:
returncode, exc = ret_exc
c1 = pytester.makeconftest(
"""
import pytest
def pytest_sessionstart():
raise {exc}("boom")
def pytest_internalerror(excrepr, excinfo):
returncode = {... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 24 | makeconftest | ref | function | c1 = pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 39 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 64 | parametrize | ref | function | @pytest.mark.parametrize("returncode", (None, 42))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 65 | test_wrap_session_exit_sessionfinish | def | function | def test_wrap_session_exit_sessionfinish(
returncode: Optional[int], pytester: Pytester
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 68 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 77 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 86 | parametrize | ref | function | @pytest.mark.parametrize("basetemp", ["foo", "foo/bar"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 87 | test_validate_basetemp_ok | def | function | def test_validate_basetemp_ok(tmp_path, basetemp, monkeypatch):
monkeypatch.chdir(str(tmp_path))
validate_basetemp(tmp_path / basetemp)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 89 | validate_basetemp | ref | function | validate_basetemp(tmp_path / basetemp)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 92 | parametrize | ref | function | @pytest.mark.parametrize("basetemp", ["", ".", ".."])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 93 | test_validate_basetemp_fails | def | function | def test_validate_basetemp_fails(tmp_path, basetemp, monkeypatch):
monkeypatch.chdir(str(tmp_path))
msg = "basetemp must not be empty, the current working directory or any parent directory of it"
with pytest.raises(argparse.ArgumentTypeError, match=msg):
if basetemp:
basetemp = tmp_path ... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 96 | raises | ref | function | with pytest.raises(argparse.ArgumentTypeError, match=msg):
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 99 | validate_basetemp | ref | function | validate_basetemp(basetemp)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 102 | test_validate_basetemp_integration | def | function | def test_validate_basetemp_integration(pytester: Pytester) -> None:
result = pytester.runpytest("--basetemp=.")
result.stderr.fnmatch_lines("*basetemp must not be*")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 103 | runpytest | ref | function | result = pytester.runpytest("--basetemp=.")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 104 | fnmatch_lines | ref | function | result.stderr.fnmatch_lines("*basetemp must not be*")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 107 | TestResolveCollectionArgument | def | class | invocation_path test_file test_dir test_pypath test_does_not_exist test_absolute_paths_are_resolved_correctly |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 109 | invocation_path | def | function | def invocation_path(self, pytester: Pytester) -> Path:
pytester.syspathinsert(pytester.path / "src")
pytester.chdir()
pkg = pytester.path.joinpath("src/pkg")
pkg.mkdir(parents=_True)
pkg.joinpath("__init__.py").touch()
pkg.joinpath("test.py").touch()
return p... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 110 | syspathinsert | ref | function | pytester.syspathinsert(pytester.path / "src")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 119 | test_file | def | function | def test_file(self, invocation_path: Path) -> None:
"""File and parts."""
assert resolve_collection_argument(invocation_path, "src/pkg/test.py") == (
invocation_path / "src/pkg/test.py",
[],
)
assert resolve_collection_argument(invocation_path, "src/pkg/test.p... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 121 | resolve_collection_argument | ref | function | assert resolve_collection_argument(invocation_path, "src/pkg/test.py") == (
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 125 | resolve_collection_argument | ref | function | assert resolve_collection_argument(invocation_path, "src/pkg/test.py::") == (
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 129 | resolve_collection_argument | ref | function | assert resolve_collection_argument(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 132 | resolve_collection_argument | ref | function | assert resolve_collection_argument(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 136 | test_dir | def | function | def test_dir(self, invocation_path: Path) -> None:
"""Directory and parts."""
assert resolve_collection_argument(invocation_path, "src/pkg") == (
invocation_path / "src/pkg",
[],
)
with pytest.raises(
UsageError, match=r"directory argument cannot ... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 138 | resolve_collection_argument | ref | function | assert resolve_collection_argument(invocation_path, "src/pkg") == (
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 143 | raises | ref | function | with pytest.raises(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 146 | resolve_collection_argument | ref | function | resolve_collection_argument(invocation_path, "src/pkg::")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 148 | raises | ref | function | with pytest.raises(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 151 | resolve_collection_argument | ref | function | resolve_collection_argument(invocation_path, "src/pkg::foo::bar")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 153 | test_pypath | def | function | def test_pypath(self, invocation_path: Path) -> None:
"""Dotted name and parts."""
assert resolve_collection_argument(
invocation_path, "pkg.test", as_pypath=_True
) == (invocation_path / "src/pkg/test.py", [])
assert resolve_collection_argument(
invocation_pa... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 155 | resolve_collection_argument | ref | function | assert resolve_collection_argument(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 158 | resolve_collection_argument | ref | function | assert resolve_collection_argument(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 161 | resolve_collection_argument | ref | function | assert resolve_collection_argument(invocation_path, "pkg", as_pypath=True) == (
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 166 | raises | ref | function | with pytest.raises(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 169 | resolve_collection_argument | ref | function | resolve_collection_argument(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_main.py | testing/test_main.py | 173 | test_does_not_exist | def | function | def test_does_not_exist(self, invocation_path: Path) -> None:
"""Given a file/module that does not exist raises UsageError."""
with pytest.raises(
UsageError, match=re.escape("file or directory not found: foobar")
):
resolve_collection_argument(invocation_path, "fooba... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.