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_assertrewrite.py | testing/test_assertrewrite.py | 1,797 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_assertrewrite.py | testing/test_assertrewrite.py | 1,805 | test_default_verbosity | def | function | def test_default_verbosity(self, pytester: Pytester) -> None:
self.create_test_file(pytester, DEFAULT_REPR_MAX_SIZE)
result = pytester.runpytest()
result.stdout.fnmatch_lines(["*xxx...xxx*"])
def test_increased_verbosity(self, pytester: Pytester) -> None:
self.create_test_file(p... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_assertrewrite.py | testing/test_assertrewrite.py | 1,806 | create_test_file | ref | function | self.create_test_file(pytester, DEFAULT_REPR_MAX_SIZE)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_assertrewrite.py | testing/test_assertrewrite.py | 1,807 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_assertrewrite.py | testing/test_assertrewrite.py | 1,808 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*xxx...xxx*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_assertrewrite.py | testing/test_assertrewrite.py | 1,810 | test_increased_verbosity | def | function | def test_increased_verbosity(self, pytester: Pytester) -> None:
self.create_test_file(pytester, DEFAULT_REPR_MAX_SIZE)
result = pytester.runpytest("-v")
result.stdout.no_fnmatch_line("*xxx...xxx*")
def test_max_increased_verbosity(self, pytester: Pytester) -> None:
self.create_t... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_assertrewrite.py | testing/test_assertrewrite.py | 1,811 | create_test_file | ref | function | self.create_test_file(pytester, DEFAULT_REPR_MAX_SIZE)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_assertrewrite.py | testing/test_assertrewrite.py | 1,812 | runpytest | ref | function | result = pytester.runpytest("-v")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_assertrewrite.py | testing/test_assertrewrite.py | 1,813 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*xxx...xxx*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_assertrewrite.py | testing/test_assertrewrite.py | 1,815 | test_max_increased_verbosity | def | function | def test_max_increased_verbosity(self, pytester: Pytester) -> None:
self.create_test_file(pytester, DEFAULT_REPR_MAX_SIZE * 10)
result = pytester.runpytest("-vv")
result.stdout.no_fnmatch_line("*xxx...xxx*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_assertrewrite.py | testing/test_assertrewrite.py | 1,816 | create_test_file | ref | function | self.create_test_file(pytester, DEFAULT_REPR_MAX_SIZE * 10)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_assertrewrite.py | testing/test_assertrewrite.py | 1,817 | runpytest | ref | function | result = pytester.runpytest("-vv")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_assertrewrite.py | testing/test_assertrewrite.py | 1,818 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*xxx...xxx*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 15 | TestNewAPI | def | class | test_config_cache_mkdir test_config_cache_dataerror test_cache_writefail_cachfile_silent unwritable_cache_dir test_cache_writefail_permissions test_cache_failure_warns test_config_cache test_cachefuncarg test_custom_rel_cache_dir test_custom_abs_cache_dir test_custom_cache_dir_with_env_var |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 16 | test_config_cache_mkdir | def | function | def test_config_cache_mkdir(self, pytester: Pytester) -> None:
pytester.makeini("[pytest]")
config = pytester.parseconfigure()
assert config.cache is not None
with pytest.raises(ValueError):
config.cache.mkdir("key/name")
p = config.cache.mkdir("name")
as... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 17 | makeini | ref | function | pytester.makeini("[pytest]")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 18 | parseconfigure | ref | function | config = pytester.parseconfigure()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 20 | raises | ref | function | with pytest.raises(ValueError):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 26 | test_config_cache_dataerror | def | function | def test_config_cache_dataerror(self, pytester: Pytester) -> None:
pytester.makeini("[pytest]")
config = pytester.parseconfigure()
assert config.cache is not None
cache = config.cache
pytest.raises(TypeError, lambda: cache.set("key/name", cache))
config.cache.set("key... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 27 | makeini | ref | function | pytester.makeini("[pytest]")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 28 | parseconfigure | ref | function | config = pytester.parseconfigure()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 31 | raises | ref | function | pytest.raises(TypeError, lambda: cache.set("key/name", cache))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 33 | _getvaluepath | ref | function | config.cache._getvaluepath("key/name").write_bytes(b"123invalid")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 37 | filterwarnings | ref | function | @pytest.mark.filterwarnings("ignore:could not create cache path")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 38 | test_cache_writefail_cachfile_silent | def | function | def test_cache_writefail_cachfile_silent(self, pytester: Pytester) -> None:
pytester.makeini("[pytest]")
pytester.path.joinpath(".pytest_cache").write_text("gone wrong")
config = pytester.parseconfigure()
cache = config.cache
assert cache is not None
cache.set("test/b... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 39 | makeini | ref | function | pytester.makeini("[pytest]")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 41 | parseconfigure | ref | function | config = pytester.parseconfigure()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 47 | unwritable_cache_dir | def | function | def unwritable_cache_dir(self, pytester: Pytester) -> Generator[Path, None, None]:
cache_dir = pytester.path.joinpath(".pytest_cache")
cache_dir.mkdir()
mode = cache_dir.stat().st_mode
cache_dir.chmod(0)
if os.access(cache_dir, os.W_OK):
pytest.skip("Failed to mak... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 53 | skip | ref | function | pytest.skip("Failed to make cache dir unwritable")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 58 | filterwarnings | ref | function | @pytest.mark.filterwarnings(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 61 | test_cache_writefail_permissions | def | function | def test_cache_writefail_permissions(
self, unwritable_cache_dir: Path, pytester: Pytester
) -> None:
pytester.makeini("[pytest]")
config = pytester.parseconfigure()
cache = config.cache
assert cache is not None
cache.set("test/broken", [])
@pytest.mark.filte... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 64 | makeini | ref | function | pytester.makeini("[pytest]")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 65 | parseconfigure | ref | function | config = pytester.parseconfigure()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 70 | filterwarnings | ref | function | @pytest.mark.filterwarnings("default")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 71 | test_cache_failure_warns | def | function | def test_cache_failure_warns(
self,
pytester: Pytester,
monkeypatch: MonkeyPatch,
unwritable_cache_dir: Path,
) -> None:
monkeypatch.setenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", "1")
pytester.makepyfile("def test_error(): raise Exception")
result = pytester.r... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 77 | setenv | ref | function | monkeypatch.setenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", "1")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 79 | makepyfile | ref | function | pytester.makepyfile("def test_error(): raise Exception")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 80 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 83 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 95 | test_config_cache | def | function | def test_config_cache(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
def pytest_configure(config):
# see that we get cache information early on
assert hasattr(config, "cache")
"""
)
pytester.makepyfile(
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 96 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 103 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 109 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 111 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 113 | test_cachefuncarg | def | function | def test_cachefuncarg(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
def test_cachefuncarg(cache):
val = cache.get("some/thing", None)
assert val is None
cache.set("some/thing", [1])
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 114 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 126 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 128 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 130 | test_custom_rel_cache_dir | def | function | def test_custom_rel_cache_dir(self, pytester: Pytester) -> None:
rel_cache_dir = os.path.join("custom_cache_dir", "subdir")
pytester.makeini(
"""
[pytest]
cache_dir = {cache_dir}
""".format(
cache_dir=rel_cache_dir
)
)
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 132 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 140 | makepyfile | ref | function | pytester.makepyfile(test_errored="def test_error():\n assert False")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 141 | runpytest | ref | function | pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 144 | test_custom_abs_cache_dir | def | function | def test_custom_abs_cache_dir(
self, pytester: Pytester, tmp_path_factory: TempPathFactory
) -> None:
tmp = tmp_path_factory.mktemp("tmp")
abs_cache_dir = tmp / "custom_cache_dir"
pytester.makeini(
"""
[pytest]
cache_dir = {cache_dir}
"... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 147 | mktemp | ref | function | tmp = tmp_path_factory.mktemp("tmp")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 149 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 157 | makepyfile | ref | function | pytester.makepyfile(test_errored="def test_error():\n assert False")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 158 | runpytest | ref | function | pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 161 | test_custom_cache_dir_with_env_var | def | function | def test_custom_cache_dir_with_env_var(
self, pytester: Pytester, monkeypatch: MonkeyPatch
) -> None:
monkeypatch.setenv("env_var", "custom_cache_dir")
pytester.makeini(
"""
[pytest]
cache_dir = {cache_dir}
""".format(
cache_dir... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 164 | setenv | ref | function | monkeypatch.setenv("env_var", "custom_cache_dir")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 165 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 173 | makepyfile | ref | function | pytester.makepyfile(test_errored="def test_error():\n assert False")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 174 | runpytest | ref | function | pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 178 | parametrize | ref | function | @pytest.mark.parametrize("env", ((), ("TOX_ENV_DIR", "/tox_env_dir")))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 179 | test_cache_reportheader | def | function | def test_cache_reportheader(env, pytester: Pytester, monkeypatch: MonkeyPatch) -> None:
pytester.makepyfile("""def test_foo(): pass""")
if env:
monkeypatch.setenv(*env)
expected = os.path.join(env[1], ".pytest_cache")
else:
monkeypatch.delenv("TOX_ENV_DIR", raising=_False)
ex... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 180 | makepyfile | ref | function | pytester.makepyfile("""def test_foo(): pass""")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 182 | setenv | ref | function | monkeypatch.setenv(*env)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 185 | delenv | ref | function | monkeypatch.delenv("TOX_ENV_DIR", raising=False)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 187 | runpytest | ref | function | result = pytester.runpytest("-v")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 188 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["cachedir: %s" % expected])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 191 | test_cache_reportheader_external_abspath | def | function | def test_cache_reportheader_external_abspath(
pytester: Pytester, tmp_path_factory: TempPathFactory
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 194 | mktemp | ref | function | external_cache = tmp_path_factory.mktemp(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 198 | makepyfile | ref | function | pytester.makepyfile("def test_hello(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 199 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 207 | runpytest | ref | function | result = pytester.runpytest("-v")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 208 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines([f"cachedir: {external_cache}"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 211 | test_cache_show | def | function | def test_cache_show(pytester: Pytester) -> None:
result = pytester.runpytest("--cache-show")
assert result.ret == 0
result.stdout.fnmatch_lines(["*cache is empty*"])
pytester.makeconftest(
"""
def pytest_configure(config):
config.cache.set("my/name", [1,2,3])
conf... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 212 | runpytest | ref | function | result = pytester.runpytest("--cache-show")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 214 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*cache is empty*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 215 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 226 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 229 | runpytest | ref | function | result = pytester.runpytest("--cache-show")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 230 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 246 | runpytest | ref | function | result = pytester.runpytest("--cache-show", "*/hello")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 247 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 263 | TestLastFailed | def | class | test_lastfailed_usecase test_failedfirst_order test_lastfailed_failedfirst_order test_lastfailed_difference_invocations test_lastfailed_usecase_splice test_lastfailed_xpass test_non_serializable_parametrize test_terminal_report_lastfailed test_terminal_report_failedfirst test_lastfailed_collectfailure test_lastfailed_f... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 264 | test_lastfailed_usecase | def | function | def test_lastfailed_usecase(
self, pytester: Pytester, monkeypatch: MonkeyPatch
) -> None:
monkeypatch.setattr("sys.dont_write_bytecode", _True)
p = pytester.makepyfile(
"""
def test_1(): assert 0
def test_2(): assert 0
def test_3(): assert... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 268 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 275 | runpytest | ref | function | result = pytester.runpytest(str(p))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 276 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*2 failed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 277 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 284 | runpytest | ref | function | result = pytester.runpytest(str(p), "--lf")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 285 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 292 | runpytest | ref | function | result = pytester.runpytest(str(p), "--lf")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 293 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 301 | runpytest | ref | function | result = pytester.runpytest(str(p), "--lf", "--cache-clear")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 302 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 failed*2 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 307 | isdir | ref | function | if os.path.isdir(".pytest_cache"):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 309 | runpytest | ref | function | result = pytester.runpytest("--lf", "--cache-clear")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 310 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 failed*2 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 312 | test_failedfirst_order | def | function | def test_failedfirst_order(self, pytester: Pytester) -> None:
pytester.makepyfile(
test_a="def test_always_passes(): pass",
test_b="def test_always_fails(): assert 0",
)
result = pytester.runpytest()
# Test order will be collection order; alphabetical
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.