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_pathlib.py
testing/test_pathlib.py
568
insert_missing_modules
ref
function
insert_missing_modules(modules, "src")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
572
insert_missing_modules
ref
function
insert_missing_modules(modules, "")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
18
pytestpm
def
function
def pytestpm() -> PytestPluginManager: return PytestPluginManager()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
19
PytestPluginManager
ref
function
return PytestPluginManager()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
26
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
32
makeconftest
ref
function
conf = pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
43
call_historic
ref
function
pm.hook.pytest_addhooks.call_historic(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
46
_importconftest
ref
function
config.pluginmanager._importconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
50
pytest_myhook
ref
function
res = config.hook.pytest_myhook(xyz=10)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
54
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
61
runpytest
ref
function
res = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
63
fnmatch_lines
ref
function
res.stderr.fnmatch_lines(["*did not find*sys*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
66
parseconfigure
ref
function
config = pytester.parseconfigure()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
68
makepyfile
ref
function
p = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
75
_importconftest
ref
function
config.pluginmanager._importconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
81
parseconfig
ref
function
config = pytester.parseconfig()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
84
A
def
class
pytest_configure
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
88
register
ref
function
config.pluginmanager.register(A())
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
88
A
ref
function
config.pluginmanager.register(A())
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
90
_do_configure
ref
function
config._do_configure()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
92
register
ref
function
config.pluginmanager.register(A()) # leads to a configured() plugin
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
92
A
ref
function
config.pluginmanager.register(A()) # leads to a configured() plugin
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
96
_ensure_unconfigure
ref
function
config._ensure_unconfigure()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
97
register
ref
function
config.pluginmanager.register(A())
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
97
A
ref
function
config.pluginmanager.register(A())
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
104
api1
def
class
pytest_plugin_registered
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
108
api2
def
class
pytest_plugin_registered
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
114
setwriter
ref
function
pytestpm.trace.root.setwriter(values.append)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
115
enable_tracing
ref
function
undo = pytestpm.enable_tracing()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
118
api1
ref
function
p = api1()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
119
register
ref
function
pytestpm.register(p)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
126
raises
ref
function
with pytest.raises(ValueError):
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
127
register
ref
function
pytestpm.register(api2())
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
127
api2
ref
function
pytestpm.register(api2())
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
131
undo
ref
function
undo()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
133
test_hook_proxy
def
function
def test_hook_proxy(self, pytester: Pytester) -> None: """Test the gethookproxy function(#2016)""" config = pytester.parseconfig() session = Session.from_config(config) pytester.makepyfile(**{"tests/conftest.py": "", "tests/subdir/conftest.py": ""}) conftest1 = pytester.path...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
135
parseconfig
ref
function
config = pytester.parseconfig()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
136
from_config
ref
function
session = Session.from_config(config)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
137
makepyfile
ref
function
pytester.makepyfile(**{"tests/conftest.py": "", "tests/subdir/conftest.py": ""})
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
139
joinpath
ref
function
conftest1 = pytester.path.joinpath("tests/conftest.py")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
140
joinpath
ref
function
conftest2 = pytester.path.joinpath("tests/subdir/conftest.py")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
142
_importconftest
ref
function
config.pluginmanager._importconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
145
gethookproxy
ref
function
ihook_a = session.gethookproxy(pytester.path / "tests")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
147
_importconftest
ref
function
config.pluginmanager._importconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
150
gethookproxy
ref
function
ihook_b = session.gethookproxy(pytester.path / "tests")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
153
test_hook_with_addoption
def
function
def test_hook_with_addoption(self, pytester: Pytester) -> None: """Test that hooks can be used in a call to pytest_addoption""" pytester.makepyfile( newhooks=""" import pytest @pytest.hookspec(firstresult=_True) def pytest_default_value(): ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
155
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
163
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
173
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
180
runpytest
ref
function
res = pytester.runpytest("--help")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
181
fnmatch_lines
ref
function
res.stdout.fnmatch_lines(["*--config=CONFIG*default_value*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
184
test_default_markers
def
function
def test_default_markers(pytester: Pytester) -> None: result = pytester.runpytest("--markers") result.stdout.fnmatch_lines(["*tryfirst*first*", "*trylast*last*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
185
runpytest
ref
function
result = pytester.runpytest("--markers")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
186
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*tryfirst*first*", "*trylast*last*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
189
test_importplugin_error_message
def
function
def test_importplugin_error_message( pytester: Pytester, pytestpm: PytestPluginManager
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
197
syspathinsert
ref
function
pytester.syspathinsert(pytester.path)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
198
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
205
raises
ref
function
with pytest.raises(ImportError) as excinfo:
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
206
import_plugin
ref
function
pytestpm.import_plugin("qwe")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
214
TestPytestPluginManager
def
class
test_register_imported_modules test_canonical_import test_consider_module test_consider_module_import_module test_consider_env_fails_to_import test_plugin_skip test_consider_env_plugin_instantiation test_pluginmanager_ENV_startup test_import_plugin_importname test_import_plugin_dotted_name test_consider_conftest_deps
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
215
test_register_imported_modules
def
function
def test_register_imported_modules(self) -> None: pm = PytestPluginManager() mod = types.ModuleType("x.y.pytest_hello") pm.register(mod) assert pm.is_registered(mod) values = pm.get_plugins() assert mod in values pytest.raises(ValueError, pm.register, mod) ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
216
PytestPluginManager
ref
function
pm = PytestPluginManager()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
218
register
ref
function
pm.register(mod)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
219
is_registered
ref
function
assert pm.is_registered(mod)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
220
get_plugins
ref
function
values = pm.get_plugins()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
222
raises
ref
function
pytest.raises(ValueError, pm.register, mod)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
223
raises
ref
function
pytest.raises(ValueError, lambda: pm.register(mod))
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
223
register
ref
function
pytest.raises(ValueError, lambda: pm.register(mod))
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
225
get_plugins
ref
function
assert pm.get_plugins() == values
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
227
test_canonical_import
def
function
def test_canonical_import(self, monkeypatch): mod = types.ModuleType("pytest_xyz") monkeypatch.setitem(sys.modules, "pytest_xyz", mod) pm = PytestPluginManager() pm.import_plugin("pytest_xyz") assert pm.get_plugin("pytest_xyz") == mod assert pm.is_registered(mod) ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
229
setitem
ref
function
monkeypatch.setitem(sys.modules, "pytest_xyz", mod)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
230
PytestPluginManager
ref
function
pm = PytestPluginManager()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
231
import_plugin
ref
function
pm.import_plugin("pytest_xyz")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
232
get_plugin
ref
function
assert pm.get_plugin("pytest_xyz") == mod
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
233
is_registered
ref
function
assert pm.is_registered(mod)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
235
test_consider_module
def
function
def test_consider_module( self, pytester: Pytester, pytestpm: PytestPluginManager ) -> None: pytester.syspathinsert() pytester.makepyfile(pytest_p1="#") pytester.makepyfile(pytest_p2="#") mod = types.ModuleType("temp") mod.__dict__["pytest_plugins"] = ["pytest_p1"...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
238
syspathinsert
ref
function
pytester.syspathinsert()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
239
makepyfile
ref
function
pytester.makepyfile(pytest_p1="#")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
240
makepyfile
ref
function
pytester.makepyfile(pytest_p2="#")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
243
consider_module
ref
function
pytestpm.consider_module(mod)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
244
get_plugin
ref
function
assert pytestpm.get_plugin("pytest_p1").__name__ == "pytest_p1"
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
245
get_plugin
ref
function
assert pytestpm.get_plugin("pytest_p2").__name__ == "pytest_p2"
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
247
test_consider_module_import_module
def
function
def test_consider_module_import_module( self, pytester: Pytester, _config_for_test: Config ) -> None: pytestpm = _config_for_test.pluginmanager mod = types.ModuleType("x") mod.__dict__["pytest_plugins"] = "pytest_a" aplugin = pytester.makepyfile(pytest_a="#") repr...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
253
makepyfile
ref
function
aplugin = pytester.makepyfile(pytest_a="#")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
254
make_hook_recorder
ref
function
reprec = pytester.make_hook_recorder(pytestpm)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
255
syspathinsert
ref
function
pytester.syspathinsert(aplugin.parent)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
256
consider_module
ref
function
pytestpm.consider_module(mod)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
257
getcall
ref
function
call = reprec.getcall(pytestpm.hook.pytest_plugin_registered.name)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
261
consider_module
ref
function
pytestpm.consider_module(mod)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
262
getcalls
ref
function
values = reprec.getcalls("pytest_plugin_registered")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
265
test_consider_env_fails_to_import
def
function
def test_consider_env_fails_to_import( self, monkeypatch: MonkeyPatch, pytestpm: PytestPluginManager ) -> None: monkeypatch.setenv("PYTEST_PLUGINS", "nonexisting", prepend=",") with pytest.raises(ImportError): pytestpm.consider_env() @pytest.mark.filterwarnings("always")...