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_capture.py | testing/test_capture.py | 1,499 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*OSError*")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,502 | test_global_capture_with_live_logging | def | function | def test_global_capture_with_live_logging(pytester: Pytester) -> None:
# Issue 3819
# capture should work with live cli logging
# Teardown report seems to have the capture for the whole process (setup, capture, teardown)
pytester.makeconftest(
"""
def pytest_runtest_logreport(report):
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,507 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,519 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,541 | runpytest_subprocess | ref | function | result = pytester.runpytest_subprocess("--log-cli-level=INFO")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,560 | parametrize | ref | function | @pytest.mark.parametrize("capture_fixture", ["capsys", "capfd"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,561 | test_capture_with_live_logging | def | function | def test_capture_with_live_logging(
pytester: Pytester, capture_fixture: CaptureFixture[str]
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,567 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,592 | runpytest_subprocess | ref | function | result = pytester.runpytest_subprocess("--log-cli-level=INFO")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,596 | test_typeerror_encodedfile_write | def | function | def test_typeerror_encodedfile_write(pytester: Pytester) -> None:
"""It should behave the same with and without output capturing (#4861)."""
p = pytester.makepyfile(
"""
def test_fails():
import sys
sys.stdout.write(b"foo")
"""
)
result_without_capture = pytes... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,598 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,605 | runpytest | ref | function | result_without_capture = pytester.runpytest("-s", str(p))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,606 | runpytest | ref | function | result_with_capture = pytester.runpytest(str(p))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,615 | test_stderr_write_returns_len | def | function | def test_stderr_write_returns_len(capsys: CaptureFixture[str]) -> None:
"""Write on Encoded files, namely captured stderr, should return number of characters written."""
assert sys.stderr.write("Foo") == 3
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,620 | test_encodedfile_writelines | def | function | def test_encodedfile_writelines(tmpfile: BinaryIO) -> None:
ef = capture.EncodedFile(tmpfile, encoding="utf-8")
with pytest.raises(TypeError):
ef.writelines([b"line1", b"line2"]) # type: ignore[list-item]
assert ef.writelines(["line3", "line4"]) is None # type: ignore[func-returns-value]
ef.fl... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,621 | EncodedFile | ref | function | ef = capture.EncodedFile(tmpfile, encoding="utf-8")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,622 | raises | ref | function | with pytest.raises(TypeError):
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,629 | raises | ref | function | with pytest.raises(ValueError):
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,633 | test__get_multicapture | def | function | def test__get_multicapture() -> None:
assert isinstance(_get_multicapture("no"), MultiCapture)
pytest.raises(ValueError, _get_multicapture, "unknown").match(
r"^unknown capturing method: 'unknown'"
)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,634 | _get_multicapture | ref | function | assert isinstance(_get_multicapture("no"), MultiCapture)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,635 | raises | ref | function | pytest.raises(ValueError, _get_multicapture, "unknown").match(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,635 | match | ref | function | pytest.raises(ValueError, _get_multicapture, "unknown").match(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,640 | test_logging_while_collecting | def | function | def test_logging_while_collecting(pytester: Pytester) -> None:
"""Issue #6240: Calls to logging.xxx() during collection causes all logging calls to be duplicated to stderr"""
p = pytester.makepyfile(
"""\
import logging
logging.warning("during collection")
def test_logging():
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,642 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,653 | runpytest_subprocess | ref | function | result = pytester.runpytest_subprocess(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,655 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,665 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*Captured stderr call*")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 1,666 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*during collection*")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 20 | ensure_file | def | function | def ensure_file(file_path: Path) -> Path:
"""Ensure that file exists"""
file_path.parent.mkdir(parents=_True, exist_ok=_True)
file_path.touch(exist_ok=_True)
return file_path
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 27 | TestCollector | def | class | test_collect_versus_item test_check_equality test_getparent test_getcustomfile_roundtrip test_can_skip_class_with_test_attr |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 28 | test_collect_versus_item | def | function | def test_collect_versus_item(self) -> None:
from pytest import Collector
from pytest import Item
assert not issubclass(Collector, Item)
assert not issubclass(Item, Collector)
def test_check_equality(self, pytester: Pytester) -> None:
modcol = pytester.getmodulecol(
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 35 | test_check_equality | def | function | def test_check_equality(self, pytester: Pytester) -> None:
modcol = pytester.getmodulecol(
"""
def test_pass(): pass
def test_fail(): assert 0
"""
)
fn1 = pytester.collect_by_name(modcol, "test_pass")
assert isinstance(fn1, pytest.Function)... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 36 | getmodulecol | ref | function | modcol = pytester.getmodulecol(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 42 | collect_by_name | ref | function | fn1 = pytester.collect_by_name(modcol, "test_pass")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 44 | collect_by_name | ref | function | fn2 = pytester.collect_by_name(modcol, "test_pass")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 51 | collect_by_name | ref | function | fn3 = pytester.collect_by_name(modcol, "test_fail")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 64 | collect_by_name | ref | function | assert pytester.collect_by_name(modcol, "doesnotexist") is None
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 66 | test_getparent | def | function | def test_getparent(self, pytester: Pytester) -> None:
modcol = pytester.getmodulecol(
"""
class TestClass:
def test_foo(self):
pass
"""
)
cls = pytester.collect_by_name(modcol, "TestClass")
assert isinstance(cls, p... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 67 | getmodulecol | ref | function | modcol = pytester.getmodulecol(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 74 | collect_by_name | ref | function | cls = pytester.collect_by_name(modcol, "TestClass")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 76 | collect_by_name | ref | function | instance = pytester.collect_by_name(cls, "()")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 78 | collect_by_name | ref | function | fn = pytester.collect_by_name(instance, "test_foo")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 81 | getparent | ref | function | module_parent = fn.getparent(pytest.Module)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 84 | getparent | ref | function | function_parent = fn.getparent(pytest.Function)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 87 | getparent | ref | class | |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 90 | test_getcustomfile_roundtrip | def | function | def test_getcustomfile_roundtrip(self, pytester: Pytester) -> None:
hello = pytester.makefile(".xxx", hello="world")
pytester.makepyfile(
conftest="""
import pytest
class CustomFile(pytest.File):
pass
def pytest_collect_file(fspath, par... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 91 | makefile | ref | function | hello = pytester.makefile(".xxx", hello="world")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 92 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 102 | getpathnode | ref | function | node = pytester.getpathnode(hello)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 105 | perform_collect | ref | function | nodes = node.session.perform_collect([node.nodeid], genitems=False)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 109 | test_can_skip_class_with_test_attr | def | class | |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 111 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 121 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 122 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["collected 0 items", "*no tests ran in*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 125 | TestCollectFS | def | class | test_ignored_certain_directories test_ignored_virtualenvs test_ignored_virtualenvs_norecursedirs_precedence test__in_venv test_custom_norecursedirs test_testpaths_ini |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 126 | test_ignored_certain_directories | def | function | def test_ignored_certain_directories(self, pytester: Pytester) -> None:
tmp_path = pytester.path
ensure_file(tmp_path / "build" / "test_notfound.py")
ensure_file(tmp_path / "dist" / "test_notfound.py")
ensure_file(tmp_path / "_darcs" / "test_notfound.py")
ensure_file(tmp_path... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 128 | ensure_file | ref | function | ensure_file(tmp_path / "build" / "test_notfound.py")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 129 | ensure_file | ref | function | ensure_file(tmp_path / "dist" / "test_notfound.py")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 130 | ensure_file | ref | function | ensure_file(tmp_path / "_darcs" / "test_notfound.py")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 131 | ensure_file | ref | function | ensure_file(tmp_path / "CVS" / "test_notfound.py")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 132 | ensure_file | ref | function | ensure_file(tmp_path / "{arch}" / "test_notfound.py")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 133 | ensure_file | ref | function | ensure_file(tmp_path / ".whatever" / "test_notfound.py")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 134 | ensure_file | ref | function | ensure_file(tmp_path / ".bzr" / "test_notfound.py")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 135 | ensure_file | ref | function | ensure_file(tmp_path / "normal" / "test_found.py")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 139 | runpytest | ref | function | result = pytester.runpytest("--collect-only")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 144 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 155 | test_ignored_virtualenvs | def | function | def test_ignored_virtualenvs(self, pytester: Pytester, fname: str) -> None:
bindir = "Scripts" if sys.platform.startswith("win") else "bin"
ensure_file(pytester.path / "virtual" / bindir / fname)
testfile = ensure_file(pytester.path / "virtual" / "test_invenv.py")
testfile.write_text... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 157 | ensure_file | ref | function | ensure_file(pytester.path / "virtual" / bindir / fname)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 158 | ensure_file | ref | function | testfile = ensure_file(pytester.path / "virtual" / "test_invenv.py")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 162 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 163 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*test_invenv*")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 165 | runpytest | ref | function | result = pytester.runpytest("--collect-in-virtualenv")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 168 | runpytest | ref | function | result = pytester.runpytest("virtual")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 171 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 182 | test_ignored_virtualenvs_norecursedirs_precedence | def | function | def test_ignored_virtualenvs_norecursedirs_precedence(
self, pytester: Pytester, fname: str
) -> None:
bindir = "Scripts" if sys.platform.startswith("win") else "bin"
# norecursedirs takes priority
ensure_file(pytester.path / ".virtual" / bindir / fname)
testfile = ensure... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 187 | ensure_file | ref | function | ensure_file(pytester.path / ".virtual" / bindir / fname)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 188 | ensure_file | ref | function | testfile = ensure_file(pytester.path / ".virtual" / "test_invenv.py")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 190 | runpytest | ref | function | result = pytester.runpytest("--collect-in-virtualenv")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 191 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*test_invenv*")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 193 | runpytest | ref | function | result = pytester.runpytest("--collect-in-virtualenv", ".virtual")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 196 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 207 | test__in_venv | def | function | def test__in_venv(self, pytester: Pytester, fname: str) -> None:
"""Directly test the virtual env detection function"""
bindir = "Scripts" if sys.platform.startswith("win") else "bin"
# no bin/activate, not a virtualenv
base_path = pytester.mkdir("venv")
assert _in_venv(base_... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 212 | _in_venv | ref | function | assert _in_venv(base_path) is False
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 217 | _in_venv | ref | function | assert _in_venv(base_path) is True
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 219 | test_custom_norecursedirs | def | function | def test_custom_norecursedirs(self, pytester: Pytester) -> None:
pytester.makeini(
"""
[pytest]
norecursedirs = mydir xyz*
"""
)
tmp_path = pytester.path
ensure_file(tmp_path / "mydir" / "test_hello.py").write_text(
"def test_1(... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 220 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 227 | ensure_file | ref | function | ensure_file(tmp_path / "mydir" / "test_hello.py").write_text(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 230 | ensure_file | ref | function | ensure_file(tmp_path / "xyz123" / "test_2.py").write_text("def test_2(): 0/0")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 231 | ensure_file | ref | function | ensure_file(tmp_path / "xy" / "test_ok.py").write_text("def test_3(): pass")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 232 | inline_run | ref | function | rec = pytester.inline_run()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 233 | assertoutcome | ref | function | rec.assertoutcome(passed=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 234 | inline_run | ref | function | rec = pytester.inline_run("xyz123/test_2.py")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 235 | assertoutcome | ref | function | rec.assertoutcome(failed=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 237 | test_testpaths_ini | def | function | def test_testpaths_ini(self, pytester: Pytester, monkeypatch: MonkeyPatch) -> None:
pytester.makeini(
"""
[pytest]
testpaths = gui uts
"""
)
tmp_path = pytester.path
ensure_file(tmp_path / "env" / "test_1.py").write_text("def test_env(): pa... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 238 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 245 | ensure_file | ref | function | ensure_file(tmp_path / "env" / "test_1.py").write_text("def test_env(): pass")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 246 | ensure_file | ref | function | ensure_file(tmp_path / "gui" / "test_2.py").write_text("def test_gui(): pass")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 247 | ensure_file | ref | function | ensure_file(tmp_path / "uts" / "test_3.py").write_text("def test_uts(): pass")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 251 | inline_genitems | ref | function | items, reprec = pytester.inline_genitems("-v")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_collection.py | testing/test_collection.py | 257 | inline_genitems | ref | function | items, reprec = pytester.inline_genitems(tmp_path.joinpath(dirname))
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.