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_pluginmanager.py
testing/test_pluginmanager.py
349
joinpath
ref
function
pytester.mkpydir("pkg").joinpath("plug.py").write_text("x=3")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
349
write_text
ref
function
pytester.mkpydir("pkg").joinpath("plug.py").write_text("x=3")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
351
import_plugin
ref
function
pytestpm.import_plugin(pluginname)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
352
get_plugin
ref
function
mod = pytestpm.get_plugin("pkg.plug")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
355
test_consider_conftest_deps
def
function
def test_consider_conftest_deps( self, pytester: Pytester, pytestpm: PytestPluginManager, ) -> None: mod = import_path( pytester.makepyfile("pytest_plugins='xyz'"), root=pytester.path ) with pytest.raises(ImportError): pytestpm.consider_con...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
360
import_path
ref
function
mod = import_path(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
361
makepyfile
ref
function
pytester.makepyfile("pytest_plugins='xyz'"), root=pytester.path
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
363
raises
ref
function
with pytest.raises(ImportError):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
364
consider_conftest
ref
function
pytestpm.consider_conftest(mod)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
367
TestPytestPluginManagerBootstrapming
def
class
test_preparse_args test_plugin_prevent_register test_plugin_prevent_register_unregistered_alredy_registered test_plugin_prevent_register_stepwise_on_cacheprovider_unregister test_blocked_plugin_can_be_used
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
368
test_preparse_args
def
function
def test_preparse_args(self, pytestpm: PytestPluginManager) -> None: pytest.raises( ImportError, lambda: pytestpm.consider_preparse(["xyz", "-p", "hello123"]) ) # Handles -p without space (#3532). with pytest.raises(ImportError) as excinfo: pytestpm.consider_...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
369
raises
ref
function
pytest.raises(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
370
consider_preparse
ref
function
ImportError, lambda: pytestpm.consider_preparse(["xyz", "-p", "hello123"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
374
raises
ref
function
with pytest.raises(ImportError) as excinfo:
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
375
consider_preparse
ref
function
pytestpm.consider_preparse(["-phello123"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
377
consider_preparse
ref
function
pytestpm.consider_preparse(["-pno:hello123"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
380
consider_preparse
ref
function
pytestpm.consider_preparse(["-p"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
382
raises
ref
function
with pytest.raises(UsageError, match="^plugin main cannot be disabled$"):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
383
consider_preparse
ref
function
pytestpm.consider_preparse(["-p", "no:main"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
385
test_plugin_prevent_register
def
function
def test_plugin_prevent_register(self, pytestpm: PytestPluginManager) -> None: pytestpm.consider_preparse(["xyz", "-p", "no:abc"]) l1 = pytestpm.get_plugins() pytestpm.register(42, name="abc") l2 = pytestpm.get_plugins() assert len(l2) == len(l1) assert 42 not in l2 ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
386
consider_preparse
ref
function
pytestpm.consider_preparse(["xyz", "-p", "no:abc"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
387
get_plugins
ref
function
l1 = pytestpm.get_plugins()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
388
register
ref
function
pytestpm.register(42, name="abc")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
389
get_plugins
ref
function
l2 = pytestpm.get_plugins()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
393
test_plugin_prevent_register_unregistered_alredy_registered
def
function
def test_plugin_prevent_register_unregistered_alredy_registered( self, pytestpm: PytestPluginManager ) -> None: pytestpm.register(42, name="abc") l1 = pytestpm.get_plugins() assert 42 in l1 pytestpm.consider_preparse(["xyz", "-p", "no:abc"]) l2 = pytestpm.get_plug...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
396
register
ref
function
pytestpm.register(42, name="abc")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
397
get_plugins
ref
function
l1 = pytestpm.get_plugins()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
399
consider_preparse
ref
function
pytestpm.consider_preparse(["xyz", "-p", "no:abc"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
400
get_plugins
ref
function
l2 = pytestpm.get_plugins()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
403
test_plugin_prevent_register_stepwise_on_cacheprovider_unregister
def
function
def test_plugin_prevent_register_stepwise_on_cacheprovider_unregister( self, pytestpm: PytestPluginManager ) -> None: """From PR #4304: The only way to unregister a module is documented at the end of https://docs.pytest.org/en/stable/how-to/plugins.html. When unregister cachepro...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
411
register
ref
function
pytestpm.register(42, name="cacheprovider")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
412
register
ref
function
pytestpm.register(43, name="stepwise")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
413
get_plugins
ref
function
l1 = pytestpm.get_plugins()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
416
consider_preparse
ref
function
pytestpm.consider_preparse(["xyz", "-p", "no:cacheprovider"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
417
get_plugins
ref
function
l2 = pytestpm.get_plugins()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
421
test_blocked_plugin_can_be_used
def
function
def test_blocked_plugin_can_be_used(self, pytestpm: PytestPluginManager) -> None: pytestpm.consider_preparse(["xyz", "-p", "no:abc", "-p", "abc"]) assert pytestpm.has_plugin("abc") assert not pytestpm.is_blocked("abc") assert not pytestpm.is_blocked("pytest_abc")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
422
consider_preparse
ref
function
pytestpm.consider_preparse(["xyz", "-p", "no:abc", "-p", "abc"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
424
has_plugin
ref
function
assert pytestpm.has_plugin("abc")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
425
is_blocked
ref
function
assert not pytestpm.is_blocked("abc")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pluginmanager.py
testing/test_pluginmanager.py
426
is_blocked
ref
function
assert not pytestpm.is_blocked("pytest_abc")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
21
test_make_hook_recorder
def
function
def test_make_hook_recorder(pytester: Pytester) -> None: item = pytester.getitem("def test_func(): pass") recorder = pytester.make_hook_recorder(item.config.pluginmanager) assert not recorder.getfailures() # (The silly condition is to fool mypy that the code below this is reachable) if 1 + 1 == 2: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
22
getitem
ref
function
item = pytester.getitem("def test_func(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
23
make_hook_recorder
ref
function
recorder = pytester.make_hook_recorder(item.config.pluginmanager)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
24
getfailures
ref
function
assert not recorder.getfailures()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
28
xfail
ref
function
pytest.xfail("internal reportrecorder tests need refactoring")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
30
rep
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
37
pytest_runtest_logreport
ref
function
recorder.hook.pytest_runtest_logreport(report=rep) # type: ignore[attr-defined]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
38
getfailures
ref
function
failures = recorder.getfailures()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
40
getfailures
ref
function
failures = recorder.getfailures()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
43
rep2
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
52
pytest_runtest_logreport
ref
function
recorder.hook.pytest_runtest_logreport(report=rep2) # type: ignore[attr-defined]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
54
getmodulecol
ref
function
modcol = pytester.getmodulecol("")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
55
pytest_make_collect_report
ref
function
rep3 = modcol.config.hook.pytest_make_collect_report(collector=modcol)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
59
pytest_collectreport
ref
function
recorder.hook.pytest_collectreport(report=rep3) # type: ignore[attr-defined]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
61
listoutcomes
ref
function
passed, skipped, failed = recorder.listoutcomes()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
64
countoutcomes
ref
function
numpassed, numskipped, numfailed = recorder.countoutcomes()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
68
getfailedcollections
ref
function
assert len(recorder.getfailedcollections()) == 1
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
70
unregister
ref
function
recorder.unregister() # type: ignore[attr-defined]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
72
pytest_runtest_logreport
ref
function
recorder.hook.pytest_runtest_logreport(report=rep3) # type: ignore[attr-defined]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
73
raises
ref
function
pytest.raises(ValueError, recorder.getfailures)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
76
test_parseconfig
def
function
def test_parseconfig(pytester: Pytester) -> None: config1 = pytester.parseconfig() config2 = pytester.parseconfig() assert config2 is not config1
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
77
parseconfig
ref
function
config1 = pytester.parseconfig()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
78
parseconfig
ref
function
config2 = pytester.parseconfig()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
82
test_pytester_runs_with_plugin
def
function
def test_pytester_runs_with_plugin(pytester: Pytester) -> None: pytester.makepyfile( """ pytest_plugins = "pytester" def test_hello(pytester): assert 1 """ ) result = pytester.runpytest() result.assert_outcomes(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
83
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
90
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
91
assert_outcomes
ref
function
result.assert_outcomes(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
94
test_pytester_with_doctest
def
function
def test_pytester_with_doctest(pytester: Pytester) -> None: """Check that pytester can be used within doctests. It used to use `request.function`, which is `None` with doctests.""" pytester.makepyfile( **{ "sub/t-doctest.py": """ ''' >>> import os >>> pytester = ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
98
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
111
runpytest
ref
function
result = pytester.runpytest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
117
test_runresult_assertion_on_xfail
def
function
def test_runresult_assertion_on_xfail(pytester: Pytester) -> None: pytester.makepyfile( """ import pytest pytest_plugins = "pytester" @pytest.mark.xfail def test_potato(): assert _False """ ) result = pytester.runpytest() result.assert_outcomes(x...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
118
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
129
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
130
assert_outcomes
ref
function
result.assert_outcomes(xfailed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
134
test_runresult_assertion_on_xpassed
def
function
def test_runresult_assertion_on_xpassed(pytester: Pytester) -> None: pytester.makepyfile( """ import pytest pytest_plugins = "pytester" @pytest.mark.xfail def test_potato(): assert _True """ ) result = pytester.runpytest() result.assert_outcomes(...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
135
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
146
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
147
assert_outcomes
ref
function
result.assert_outcomes(xpassed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
151
test_xpassed_with_strict_is_considered_a_failure
def
function
def test_xpassed_with_strict_is_considered_a_failure(pytester: Pytester) -> None: pytester.makepyfile( """ import pytest pytest_plugins = "pytester" @pytest.mark.xfail(strict=_True) def test_potato(): assert _True """ ) result = pytester.runpytest() ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
152
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
163
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
164
assert_outcomes
ref
function
result.assert_outcomes(failed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
168
make_holder
def
function
def make_holder(): class apiclass: def pytest_xyz(self, arg): """X""" def pytest_xyz_noarg(self): """X""" apimod = type(os)("api") def pytest_xyz(arg): """X""" def pytest_xyz_noarg(): """X""" apimod.pytest_xyz = pytest_xyz # type: ignore ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
169
apiclass
def
class
pytest_xyz pytest_xyz_noarg
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
170
pytest_xyz
def
function
def pytest_xyz(self, arg): """X""" def pytest_xyz_noarg(self): """X""" apimod = type(os)("api") def pytest_xyz(arg): """X""" def pytest_xyz_noarg(): """X""" apimod.pytest_xyz = pytest_xyz # type: ignore apimod.pytest_xyz_noarg = pytest_xy...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
173
pytest_xyz_noarg
def
function
def pytest_xyz_noarg(self): """X""" apimod = type(os)("api") def pytest_xyz(arg): """X""" def pytest_xyz_noarg(): """X""" apimod.pytest_xyz = pytest_xyz # type: ignore apimod.pytest_xyz_noarg = pytest_xyz_noarg # type: ignore return apiclass, apimod
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
178
pytest_xyz
def
function
def pytest_xyz(arg): """X""" def pytest_xyz_noarg(): """X""" apimod.pytest_xyz = pytest_xyz # type: ignore apimod.pytest_xyz_noarg = pytest_xyz_noarg # type: ignore return apiclass, apimod
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
181
pytest_xyz_noarg
def
function
def pytest_xyz_noarg(): """X""" apimod.pytest_xyz = pytest_xyz # type: ignore apimod.pytest_xyz_noarg = pytest_xyz_noarg # type: ignore return apiclass, apimod
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
189
parametrize
ref
function
@pytest.mark.parametrize("holder", make_holder())
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
189
make_holder
ref
function
@pytest.mark.parametrize("holder", make_holder())
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
190
test_hookrecorder_basic
def
function
def test_hookrecorder_basic(holder) -> None: pm = PytestPluginManager() pm.add_hookspecs(holder) rec = HookRecorder(pm, _ispytest=_True) pm.hook.pytest_xyz(arg=123) call = rec.popcall("pytest_xyz") assert call.arg == 123 assert call._name == "pytest_xyz" pytest.raises(pytest.fail.Excepti...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
191
PytestPluginManager
ref
function
pm = PytestPluginManager()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
192
add_hookspecs
ref
function
pm.add_hookspecs(holder)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
193
HookRecorder
ref
function
rec = HookRecorder(pm, _ispytest=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
194
pytest_xyz
ref
function
pm.hook.pytest_xyz(arg=123)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
195
popcall
ref
function
call = rec.popcall("pytest_xyz")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
198
raises
ref
function
pytest.raises(pytest.fail.Exception, rec.popcall, "abc")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
199
pytest_xyz_noarg
ref
function
pm.hook.pytest_xyz_noarg()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
200
popcall
ref
function
call = rec.popcall("pytest_xyz_noarg")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pytester.py
testing/test_pytester.py
204
test_makepyfile_unicode
def
function
def test_makepyfile_unicode(pytester: Pytester) -> None: pytester.makepyfile(chr(0xFFFD))