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_config.py
testing/test_config.py
923
runfiletest
ref
function
runfiletest([path])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
924
runfiletest
ref
function
runfiletest(["-l", path])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
925
runfiletest
ref
function
runfiletest(["-s", path])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
926
runfiletest
ref
function
runfiletest(["--tb=no", path])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
927
runfiletest
ref
function
runfiletest(["--tb=short", path])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
928
runfiletest
ref
function
runfiletest(["--tb=long", path])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
929
runfiletest
ref
function
runfiletest(["--fulltrace", path])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
930
runfiletest
ref
function
runfiletest(["--traceconfig", path])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
931
runfiletest
ref
function
runfiletest(["-v", path])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
932
runfiletest
ref
function
runfiletest(["-v", "-v", path])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
935
test_preparse_ordering_with_setuptools
def
function
def test_preparse_ordering_with_setuptools( pytester: Pytester, monkeypatch: MonkeyPatch
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
938
delenv
ref
function
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
940
EntryPoint
def
class
load
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
944
load
def
function
def load(self): __import__(self.module) return sys.modules[self.module] entry_points = [ DummyEntryPoint("myplugin1", "myplugin1_module"), ] @attr.s class DummyDist: entry_points = attr.ib() files = () ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
945
PseudoPlugin
def
class
__getattr__
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
948
PseudoPlugin
ref
function
return PseudoPlugin()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
950
Dist
def
class
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
953
EntryPoint
ref
function
entry_points = (EntryPoint(),)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
955
my_dists
def
function
def my_dists(): return [DummyDist(entry_points)] pytester.makepyfile(myplugin1_module="# my plugin module") pytester.syspathinsert() monkeypatch.setattr(importlib_metadata, "distributions", my_dists) monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=_False) ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
959
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
964
setenv
ref
function
monkeypatch.setenv("PYTEST_PLUGINS", "mytestplugin")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
965
parseconfig
ref
function
config = pytester.parseconfig()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
966
getplugin
ref
function
plugin = config.pluginmanager.getplugin("mytestplugin")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
970
test_setuptools_importerror_issue1479
def
function
def test_setuptools_importerror_issue1479( pytester: Pytester, monkeypatch: MonkeyPatch
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
973
delenv
ref
function
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
975
DummyEntryPoint
def
class
load load load load load
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
979
load
def
function
def load(self): __import__(self.module) return sys.modules[self.module] entry_points = [ DummyEntryPoint("myplugin1", "myplugin1_module"), ] @attr.s class DummyDist: entry_points = attr.ib() files = () ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
982
Distribution
def
class
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
986
DummyEntryPoint
ref
function
entry_points = (DummyEntryPoint(),)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
988
distributions
def
function
def distributions(): return (Distribution(),) monkeypatch.setattr(importlib_metadata, "distributions", distributions) with pytest.raises(ImportError): pytester.parseconfig()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
989
Distribution
ref
function
return (Distribution(),)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
992
raises
ref
function
with pytest.raises(ImportError):
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
993
parseconfig
ref
function
pytester.parseconfig()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
996
test_importlib_metadata_broken_distribution
def
function
def test_importlib_metadata_broken_distribution( pytester: Pytester, monkeypatch: MonkeyPatch
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,000
delenv
ref
function
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,002
DummyEntryPoint
def
class
load load load load load
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,006
load
def
function
def load(self): __import__(self.module) return sys.modules[self.module] entry_points = [ DummyEntryPoint("myplugin1", "myplugin1_module"), ] @attr.s class DummyDist: entry_points = attr.ib() files = () ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,009
Distribution
def
class
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,013
DummyEntryPoint
ref
function
entry_points = (DummyEntryPoint(),)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,015
distributions
def
function
def distributions(): return (Distribution(),) monkeypatch.setattr(importlib_metadata, "distributions", distributions) with pytest.raises(ImportError): pytester.parseconfig()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,016
Distribution
ref
function
return (Distribution(),)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,019
parseconfig
ref
function
pytester.parseconfig()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,022
parametrize
ref
function
@pytest.mark.parametrize("block_it", [True, False])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,023
test_plugin_preparse_prevents_setuptools_loading
def
function
def test_plugin_preparse_prevents_setuptools_loading( pytester: Pytester, monkeypatch: MonkeyPatch, block_it: bool
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,026
delenv
ref
function
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,030
DummyEntryPoint
def
class
load load load load load
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,034
load
def
function
def load(self): __import__(self.module) return sys.modules[self.module] entry_points = [ DummyEntryPoint("myplugin1", "myplugin1_module"), ] @attr.s class DummyDist: entry_points = attr.ib() files = () ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,037
Distribution
def
class
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,041
DummyEntryPoint
ref
function
entry_points = (DummyEntryPoint(),)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,043
distributions
def
function
def distributions(): return (Distribution(),) monkeypatch.setattr(importlib_metadata, "distributions", distributions) with pytest.raises(ImportError): pytester.parseconfig()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,044
Distribution
ref
function
return (Distribution(),)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,048
parseconfig
ref
function
config = pytester.parseconfig(*args)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,049
import_plugin
ref
function
config.pluginmanager.import_plugin("mytestplugin")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,052
get_plugin
ref
function
assert config.pluginmanager.get_plugin("mytestplugin") is None
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,055
get_plugin
ref
function
config.pluginmanager.get_plugin("mytestplugin") is plugin_module_placeholder
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,059
parametrize
ref
function
@pytest.mark.parametrize(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,062
test_disable_plugin_autoload
def
function
def test_disable_plugin_autoload( pytester: Pytester, monkeypatch: MonkeyPatch, parse_args: Union[Tuple[str, str], Tuple[()]], should_load: bool,
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,068
DummyEntryPoint
def
class
load load load load load
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,073
load
def
function
def load(self): __import__(self.module) return sys.modules[self.module] entry_points = [ DummyEntryPoint("myplugin1", "myplugin1_module"), ] @attr.s class DummyDist: entry_points = attr.ib() files = () ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,076
Distribution
def
class
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,078
DummyEntryPoint
ref
function
entry_points = (DummyEntryPoint(),)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,081
PseudoPlugin
def
class
__getattr__
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,091
distributions
def
function
def distributions(): return (Distribution(),) monkeypatch.setattr(importlib_metadata, "distributions", distributions) with pytest.raises(ImportError): pytester.parseconfig()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,092
Distribution
ref
function
return (Distribution(),)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,094
setenv
ref
function
monkeypatch.setenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", "1")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,096
setitem
ref
function
monkeypatch.setitem(sys.modules, "mytestplugin", PseudoPlugin()) # type: ignore[misc]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,096
PseudoPlugin
ref
function
monkeypatch.setitem(sys.modules, "mytestplugin", PseudoPlugin()) # type: ignore[misc]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,097
parseconfig
ref
function
config = pytester.parseconfig(*parse_args)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,098
get_plugin
ref
function
has_loaded = config.pluginmanager.get_plugin("mytestplugin") is not None
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,106
test_plugin_loading_order
def
function
def test_plugin_loading_order(pytester: Pytester) -> None: """Test order of plugin loading with `-p`.""" p1 = pytester.makepyfile( """ def test_terminal_plugin(request): import myplugin assert myplugin.terminal_plugin == [_False, _True] """, **{ ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,108
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,127
syspathinsert
ref
function
pytester.syspathinsert()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,128
runpytest
ref
function
result = pytester.runpytest("-p", "myplugin", str(p1))
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,132
test_cmdline_processargs_simple
def
function
def test_cmdline_processargs_simple(pytester: Pytester) -> None: pytester.makeconftest( """ def pytest_cmdline_preparse(args): args.append("-h") """ ) result = pytester.runpytest() result.stdout.fnmatch_lines(["*pytest*", "*-h*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,133
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,139
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,140
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*pytest*", "*-h*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,143
test_invalid_options_show_extra_information
def
function
def test_invalid_options_show_extra_information(pytester: Pytester) -> None: """Display extra information when pytest exits due to unrecognized options in the command-line.""" pytester.makeini( """ [pytest] addopts = --invalid-option """ ) result = pytester.runpytest() ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,146
makeini
ref
function
pytester.makeini(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,152
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,153
fnmatch_lines
ref
function
result.stderr.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,162
parametrize
ref
function
@pytest.mark.parametrize(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,171
test_consider_args_after_options_for_rootdir
def
function
def test_consider_args_after_options_for_rootdir( pytester: Pytester, args: List[str]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,189
context
ref
function
with MonkeyPatch.context() as mp:
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,191
runpytest
ref
function
result = pytester.runpytest(*args)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,192
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*rootdir: *myroot"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,195
test_toolongargs_issue224
def
function
def test_toolongargs_issue224(pytester: Pytester) -> None: result = pytester.runpytest("-m", "hello" * 500) assert result.ret == ExitCode.NO_TESTS_COLLECTED
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,196
runpytest
ref
function
result = pytester.runpytest("-m", "hello" * 500)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,200
test_config_in_subdirectory_colon_command_line_issue2148
def
function
def test_config_in_subdirectory_colon_command_line_issue2148( pytester: Pytester,
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,208
makefile
ref
function
pytester.makefile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,213
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,224
runpytest
ref
function
result = pytester.runpytest("subdir/test_foo.py::test_foo")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,228
test_notify_exception
def
function
def test_notify_exception(pytester: Pytester, capfd) -> None: config = pytester.parseconfig() with pytest.raises(ValueError) as excinfo: raise ValueError(1) config.notify_exception(excinfo, config.option) _, err = capfd.readouterr() assert "ValueError" in err class A: def pytest...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,229
parseconfig
ref
function
config = pytester.parseconfig()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,230
raises
ref
function
with pytest.raises(ValueError) as excinfo:
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,232
notify_exception
ref
function
config.notify_exception(excinfo, config.option)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,233
readouterr
ref
function
_, err = capfd.readouterr()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,236
A
def
class
pytest_internalerror
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,237
pytest_internalerror
def
function
def pytest_internalerror(self): return _True config.pluginmanager.register(A()) config.notify_exception(excinfo, config.option) _, err = capfd.readouterr() assert not err config = pytester.parseconfig("-p", "no:terminal") with pytest.raises(ValueError) as excinfo: r...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,240
register
ref
function
config.pluginmanager.register(A())