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_pathlib.py | testing/test_pathlib.py | 408 | bestrelpath | ref | function | assert bestrelpath(curdir, curdir.parent) == ".."
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 409 | bestrelpath | ref | function | assert bestrelpath(curdir, Path("hello")) == "hello"
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 409 | Path | ref | function | assert bestrelpath(curdir, Path("hello")) == "hello"
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 412 | test_commonpath | def | function | def test_commonpath() -> None:
path = Path("/foo/bar/baz/path")
subpath = path / "sampledir"
assert commonpath(path, subpath) == path
assert commonpath(subpath, path) == path
assert commonpath(Path(str(path) + "suffix"), path) == path.parent
assert commonpath(path, path.parent.parent) == path.pa... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 413 | Path | ref | function | path = Path("/foo/bar/baz/path")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 417 | Path | ref | function | assert commonpath(Path(str(path) + "suffix"), path) == path.parent
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 421 | test_visit_ignores_errors | def | function | def test_visit_ignores_errors(tmp_path: Path) -> None:
symlink_or_skip("recursive", tmp_path / "recursive")
tmp_path.joinpath("foo").write_bytes(b"")
tmp_path.joinpath("bar").write_bytes(b"")
assert [
entry.name for entry in visit(str(tmp_path), recurse=lambda entry: _False)
] == ["bar", "f... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 422 | symlink_or_skip | ref | function | symlink_or_skip("recursive", tmp_path / "recursive")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 423 | joinpath | ref | function | tmp_path.joinpath("foo").write_bytes(b"")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 423 | write_bytes | ref | function | tmp_path.joinpath("foo").write_bytes(b"")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 424 | joinpath | ref | function | tmp_path.joinpath("bar").write_bytes(b"")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 424 | write_bytes | ref | function | tmp_path.joinpath("bar").write_bytes(b"")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 427 | visit | ref | function | entry.name for entry in visit(str(tmp_path), recurse=lambda entry: False)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 431 | skipif | ref | function | @pytest.mark.skipif(not sys.platform.startswith("win"), reason="Windows only")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 432 | test_samefile_false_negatives | def | function | def test_samefile_false_negatives(tmp_path: Path, monkeypatch: MonkeyPatch) -> None:
"""
import_file() should not raise ImportPathMismatchError if the paths are exactly
equal on Windows. It seems directories mounted as UNC paths make os.path.samefile
return _False, even when they are clearly equal.
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 438 | joinpath | ref | function | module_path = tmp_path.joinpath("my_module.py")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 439 | write_text | ref | function | module_path.write_text("def foo(): return 42")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 440 | syspath_prepend | ref | function | monkeypatch.syspath_prepend(tmp_path)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 442 | context | ref | function | with monkeypatch.context() as mp:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 447 | import_path | ref | function | module = import_path(module_path, root=tmp_path)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 451 | TestImportLibMode | def | class | test_importmode_importlib_with_dataclass test_importmode_importlib_with_pickle test_importmode_importlib_with_pickle_separate_modules test_module_name_from_path test_insert_missing_modules |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 452 | skipif | ref | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 453 | test_importmode_importlib_with_dataclass | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 455 | joinpath | ref | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 456 | mkdir | ref | function | fn.parent.mkdir(parents=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 457 | write_text | ref | function | fn.write_text(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 469 | import_path | ref | function | module = import_path(fn, mode="importlib", root=tmp_path)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 471 | Data | ref | function | data = Data(value="foo")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 475 | test_importmode_importlib_with_pickle | def | function | def test_importmode_importlib_with_pickle(self, tmp_path: Path) -> None:
"""Ensure that importlib mode works with pickle (#7859)."""
fn = tmp_path.joinpath("_src/tests/test_pickle.py")
fn.parent.mkdir(parents=_True)
fn.write_text(
dedent(
"""
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 477 | joinpath | ref | function | fn = tmp_path.joinpath("_src/tests/test_pickle.py")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 478 | mkdir | ref | function | fn.parent.mkdir(parents=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 479 | write_text | ref | function | fn.write_text(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 494 | import_path | ref | function | module = import_path(fn, mode="importlib", root=tmp_path)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 496 | round_trip | ref | function | action = round_trip()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 497 | action | ref | function | assert action() == 42
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 499 | test_importmode_importlib_with_pickle_separate_modules | def | function | def test_importmode_importlib_with_pickle_separate_modules(
self, tmp_path: Path
) -> None:
"""
Ensure that importlib mode works can load pickles that look similar but are
defined in separate modules.
"""
fn1 = tmp_path.joinpath("_src/m1/tests/test.py")
fn... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 506 | joinpath | ref | function | fn1 = tmp_path.joinpath("_src/m1/tests/test.py")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 507 | mkdir | ref | function | fn1.parent.mkdir(parents=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 508 | write_text | ref | function | fn1.write_text(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 521 | joinpath | ref | function | fn2 = tmp_path.joinpath("_src/m2/tests/test.py")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 522 | mkdir | ref | function | fn2.parent.mkdir(parents=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 523 | write_text | ref | function | fn2.write_text(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 538 | round_trip | def | function | def round_trip(obj):
s = pickle.dumps(obj)
return pickle.loads(s)
module = import_path(fn1, mode="importlib", root=tmp_path)
Data1 = getattr(module, "Data")
module = import_path(fn2, mode="importlib", root=tmp_path)
Data2 = getattr(module, "Data")
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 542 | import_path | ref | function | module = import_path(fn1, mode="importlib", root=tmp_path)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 545 | import_path | ref | function | module = import_path(fn2, mode="importlib", root=tmp_path)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 548 | round_trip | ref | function | assert round_trip(Data1(20)) == Data1(20)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 548 | Data1 | ref | function | assert round_trip(Data1(20)) == Data1(20)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 548 | Data1 | ref | function | assert round_trip(Data1(20)) == Data1(20)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 549 | round_trip | ref | function | assert round_trip(Data2("hello")) == Data2("hello")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 549 | Data2 | ref | function | assert round_trip(Data2("hello")) == Data2("hello")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 549 | Data2 | ref | function | assert round_trip(Data2("hello")) == Data2("hello")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 553 | test_module_name_from_path | def | function | def test_module_name_from_path(self, tmp_path: Path) -> None:
result = module_name_from_path(tmp_path / "src/tests/test_foo.py", tmp_path)
assert result == "src.tests.test_foo"
# Path is not relative to root dir: use the full path to obtain the module name.
result = module_name_from... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 554 | module_name_from_path | ref | function | result = module_name_from_path(tmp_path / "src/tests/test_foo.py", tmp_path)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 558 | module_name_from_path | ref | function | result = module_name_from_path(Path("/home/foo/test_foo.py"), Path("/bar"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 558 | Path | ref | function | result = module_name_from_path(Path("/home/foo/test_foo.py"), Path("/bar"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 558 | Path | ref | function | result = module_name_from_path(Path("/home/foo/test_foo.py"), Path("/bar"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 561 | test_insert_missing_modules | def | function | def test_insert_missing_modules(self) -> None:
modules = {"src.tests.foo": ModuleType("src.tests.foo")}
insert_missing_modules(modules, "src.tests.foo")
assert sorted(modules) == ["src", "src.tests", "src.tests.foo"]
mod = ModuleType("mod", doc="My Module")
modules = {"src":... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 563 | insert_missing_modules | ref | function | insert_missing_modules(modules, "src.tests.foo")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 568 | insert_missing_modules | ref | function | insert_missing_modules(modules, "src")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pathlib.py | testing/test_pathlib.py | 572 | insert_missing_modules | ref | function | insert_missing_modules(modules, "")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 18 | pytestpm | def | function | def pytestpm() -> PytestPluginManager:
return PytestPluginManager()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 19 | PytestPluginManager | ref | function | return PytestPluginManager()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 22 | TestPytestPluginInteractions | def | class | test_addhooks_conftestplugin test_addhooks_nohooks test_do_option_postinitialize test_configure test_hook_tracing test_hook_proxy test_hook_with_addoption |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 23 | test_addhooks_conftestplugin | def | function | def test_addhooks_conftestplugin(
self, pytester: Pytester, _config_for_test: Config
) -> None:
pytester.makepyfile(
newhooks="""
def pytest_myhook(xyz):
"new hook"
"""
)
conf = pytester.makeconftest(
"""
imp... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 26 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 32 | makeconftest | ref | function | conf = pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 43 | call_historic | ref | function | pm.hook.pytest_addhooks.call_historic(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 46 | _importconftest | ref | function | config.pluginmanager._importconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 50 | pytest_myhook | ref | function | res = config.hook.pytest_myhook(xyz=10)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 53 | test_addhooks_nohooks | def | function | def test_addhooks_nohooks(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
import sys
def pytest_addhooks(pluginmanager):
pluginmanager.add_hookspecs(sys)
"""
)
res = pytester.runpytest()
assert res.ret != 0
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 54 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 61 | runpytest | ref | function | res = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 63 | fnmatch_lines | ref | function | res.stderr.fnmatch_lines(["*did not find*sys*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 65 | test_do_option_postinitialize | def | function | def test_do_option_postinitialize(self, pytester: Pytester) -> None:
config = pytester.parseconfigure()
assert not hasattr(config.option, "test123")
p = pytester.makepyfile(
"""
def pytest_addoption(parser):
parser.addoption('--test123', action="store_... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 66 | parseconfigure | ref | function | config = pytester.parseconfigure()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 68 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 75 | _importconftest | ref | function | config.pluginmanager._importconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 80 | test_configure | def | function | def test_configure(self, pytester: Pytester) -> None:
config = pytester.parseconfig()
values = []
class A:
def pytest_configure(self):
values.append(self)
config.pluginmanager.register(A())
assert len(values) == 0
config._do_configure()
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 81 | parseconfig | ref | function | config = pytester.parseconfig()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 84 | A | def | class | pytest_configure |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 85 | pytest_configure | def | function | def pytest_configure(self):
values.append(self)
config.pluginmanager.register(A())
assert len(values) == 0
config._do_configure()
assert len(values) == 1
config.pluginmanager.register(A()) # leads to a configured() plugin
assert len(values) =... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 88 | register | ref | function | config.pluginmanager.register(A())
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 88 | A | ref | function | config.pluginmanager.register(A())
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 90 | _do_configure | ref | function | config._do_configure()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 92 | register | ref | function | config.pluginmanager.register(A()) # leads to a configured() plugin
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 92 | A | ref | function | config.pluginmanager.register(A()) # leads to a configured() plugin
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 96 | _ensure_unconfigure | ref | function | config._ensure_unconfigure()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 97 | register | ref | function | config.pluginmanager.register(A())
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 97 | A | ref | function | config.pluginmanager.register(A())
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 100 | test_hook_tracing | def | function | def test_hook_tracing(self, _config_for_test: Config) -> None:
pytestpm = _config_for_test.pluginmanager # fully initialized with plugins
saveindent = []
class api1:
def pytest_plugin_registered(self):
saveindent.append(pytestpm.trace.root.indent)
class... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 104 | api1 | def | class | pytest_plugin_registered |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 105 | pytest_plugin_registered | def | function | def pytest_plugin_registered(self):
saveindent.append(pytestpm.trace.root.indent)
class api2:
def pytest_plugin_registered(self):
saveindent.append(pytestpm.trace.root.indent)
raise ValueError()
values: List[str] = []
pyte... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 108 | api2 | def | class | pytest_plugin_registered |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 109 | pytest_plugin_registered | def | function | def pytest_plugin_registered(self):
saveindent.append(pytestpm.trace.root.indent)
class api2:
def pytest_plugin_registered(self):
saveindent.append(pytestpm.trace.root.indent)
raise ValueError()
values: List[str] = []
pyte... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 114 | setwriter | ref | function | pytestpm.trace.root.setwriter(values.append)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 115 | enable_tracing | ref | function | undo = pytestpm.enable_tracing()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 118 | api1 | ref | function | p = api1()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 119 | register | ref | function | pytestpm.register(p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 126 | raises | ref | function | with pytest.raises(ValueError):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py | testing/test_pluginmanager.py | 127 | register | ref | function | pytestpm.register(api2())
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.