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/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
659
consider_pluginarg
ref
function
self.consider_pluginarg(parg)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
661
consider_pluginarg
def
function
def consider_pluginarg(self, arg: str) -> None: """:meta private:""" if arg.startswith("no:"): name = arg[3:] if name in essential_plugins: raise UsageError("plugin %s cannot be disabled" % name) # PR #4304: remove stepwise if cacheprovider is blo...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
666
UsageError
ref
function
raise UsageError("plugin %s cannot be disabled" % name)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
670
set_blocked
ref
function
self.set_blocked("stepwise")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
671
set_blocked
ref
function
self.set_blocked("pytest_stepwise")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
673
set_blocked
ref
function
self.set_blocked(name)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
675
set_blocked
ref
function
self.set_blocked("pytest_" + name)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
685
import_plugin
ref
function
self.import_plugin(arg, consider_entry_points=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
687
consider_conftest
def
function
def consider_conftest(self, conftestmodule: types.ModuleType) -> None: """:meta private:""" self.register(conftestmodule, name=conftestmodule.__file__) def consider_env(self) -> None: """:meta private:""" self._import_plugin_specs(os.environ.get("PYTEST_PLUGINS")) def consi...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
689
register
ref
function
self.register(conftestmodule, name=conftestmodule.__file__)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
691
consider_env
def
function
def consider_env(self) -> None: """:meta private:""" self._import_plugin_specs(os.environ.get("PYTEST_PLUGINS")) def consider_module(self, mod: types.ModuleType) -> None: """:meta private:""" self._import_plugin_specs(getattr(mod, "pytest_plugins", [])) def _import_plugin_s...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
693
_import_plugin_specs
ref
function
self._import_plugin_specs(os.environ.get("PYTEST_PLUGINS"))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
695
consider_module
def
function
def consider_module(self, mod: types.ModuleType) -> None: """:meta private:""" self._import_plugin_specs(getattr(mod, "pytest_plugins", [])) def _import_plugin_specs( self, spec: Union[None, types.ModuleType, str, Sequence[str]] ) -> None: plugins = _get_plugin_specs_as_list...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
697
_import_plugin_specs
ref
function
self._import_plugin_specs(getattr(mod, "pytest_plugins", []))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
699
_import_plugin_specs
def
function
def _import_plugin_specs( self, spec: Union[None, types.ModuleType, str, Sequence[str]] ) -> None: plugins = _get_plugin_specs_as_list(spec) for import_spec in plugins: self.import_plugin(import_spec) def import_plugin(self, modname: str, consider_entry_points: bool = _F...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
702
_get_plugin_specs_as_list
ref
function
plugins = _get_plugin_specs_as_list(spec)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
704
import_plugin
ref
function
self.import_plugin(import_spec)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
706
import_plugin
def
function
null
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
719
is_blocked
ref
function
if self.is_blocked(modname) or self.get_plugin(modname) is not None:
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
719
get_plugin
ref
function
if self.is_blocked(modname) or self.get_plugin(modname) is not None:
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
723
mark_rewrite
ref
function
self.rewrite_hook.mark_rewrite(importspec)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
726
load_setuptools_entrypoints
ref
function
loaded = self.load_setuptools_entrypoints("pytest11", name=modname)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
741
register
ref
function
self.register(mod, modname)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
744
_get_plugin_specs_as_list
def
function
def _get_plugin_specs_as_list( specs: Union[None, types.ModuleType, str, Sequence[str]]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
760
UsageError
ref
function
raise UsageError(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
766
_ensure_removed_sysmodule
def
function
def _ensure_removed_sysmodule(modname: str) -> None: try: del sys.modules[modname] except KeyError: pass
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
773
Notset
def
class
__repr__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
778
Notset
ref
function
notset = Notset()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
781
_iter_rewritable_modules
def
function
def _iter_rewritable_modules(package_files: Iterable[str]) -> Iterator[str]: """Given an iterable of file names in a source distribution, return the "names" that should be marked for assertion rewrite. For example the package "pytest_mock/__init__.py" should be added as "pytest_mock" in the assertion r...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
819
splitext
ref
function
module_name, _ = os.path.splitext(fn)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
825
dirname
ref
function
package_name = os.path.dirname(fn)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
842
_iter_rewritable_modules
ref
function
yield from _iter_rewritable_modules(new_package_files)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
845
_args_converter
def
function
def _args_converter(args: Iterable[str]) -> Tuple[str, ...]: return tuple(args)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
850
Config
def
class
__init__ rootpath inipath add_cleanup _do_configure _ensure_unconfigure get_terminal_writer pytest_cmdline_parse notify_exception cwd_relative_nodeid fromdictargs _processopt pytest_load_initial_conftests _initini _consider_importhook _mark_plugins_for_rewrite _validate_args _preparse pytest_collection _checkversion _v...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
863
InvocationParams
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
894
InvocationParams
ref
function
invocation_params = self.InvocationParams(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
911
Parser
ref
function
self._parser = Parser(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
922
Stash
ref
function
self.stash = Stash()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
934
PathAwareHookProxy
ref
function
self.hook = PathAwareHookProxy(self.pluginmanager.hook)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
939
register
ref
function
self.pluginmanager.register(self, "pytestconfig")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
941
call_historic
ref
function
self.hook.pytest_addoption.call_historic(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
951
rootpath
def
function
def rootpath(self) -> Path: """The path to the :ref:`rootdir <rootdir>`. :type: pathlib.Path .. versionadded:: 6.1 """ return self._rootpath @property def inipath(self) -> Optional[Path]: """The path to the :ref:`configfile <configfiles>`. :type: O...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
961
inipath
def
function
def inipath(self) -> Optional[Path]: """The path to the :ref:`configfile <configfiles>`. :type: Optional[pathlib.Path] .. versionadded:: 6.1 """ return self._inipath def add_cleanup(self, func: Callable[[], None]) -> None: """Add a function to be called when th...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
970
add_cleanup
def
function
def add_cleanup(self, func: Callable[[], None]) -> None: """Add a function to be called when the config object gets out of use (usually coninciding with pytest_unconfigure).""" self._cleanup.append(func) def _do_configure(self) -> None: assert not self._configured self._...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
975
_do_configure
def
function
def _do_configure(self) -> None: assert not self._configured self._configured = _True with warnings.catch_warnings(): warnings.simplefilter("default") self.hook.pytest_configure.call_historic(kwargs=dict(config=self)) def _ensure_unconfigure(self) -> None: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
980
call_historic
ref
function
self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
982
_ensure_unconfigure
def
function
def _ensure_unconfigure(self) -> None: if self._configured: self._configured = _False self.hook.pytest_unconfigure(config=self) self.hook.pytest_configure._call_history = [] while self._cleanup: fin = self._cleanup.pop() fin() def get_...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
985
pytest_unconfigure
ref
function
self.hook.pytest_unconfigure(config=self)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
989
fin
ref
function
fin()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
991
get_terminal_writer
def
function
def get_terminal_writer(self) -> TerminalWriter: terminalreporter: TerminalReporter = self.pluginmanager.get_plugin( "terminalreporter" ) return terminalreporter._tw def pytest_cmdline_parse( self, pluginmanager: PytestPluginManager, args: List[str] ) -> "Config"...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
992
get_plugin
ref
function
terminalreporter: TerminalReporter = self.pluginmanager.get_plugin(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
997
pytest_cmdline_parse
def
function
def pytest_cmdline_parse( self, pluginmanager: PytestPluginManager, args: List[str] ) -> "Config": try: self.parse(args) except UsageError: # Handle --version and --help here in a minimal fashion. # This gets done via helpconfig normally, but its ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,001
parse
ref
function
self.parse(args)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,010
showversion
ref
function
showversion(self)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,014
_getparser
ref
function
self._parser._getparser().print_help()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,014
print_help
ref
function
self._parser._getparser().print_help()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,023
notify_exception
def
function
def notify_exception( self, excinfo: ExceptionInfo[BaseException], option: Optional[argparse.Namespace] = None, ) -> None: if option and getattr(option, "fulltrace", _False): style: _TracebackStyle = "long" else: style = "native" excrepr = ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,032
getrepr
ref
function
excrepr = excinfo.getrepr(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,035
pytest_internalerror
ref
function
res = self.hook.pytest_internalerror(excrepr=excrepr, excinfo=excinfo)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,041
cwd_relative_nodeid
def
function
def cwd_relative_nodeid(self, nodeid: str) -> str: # nodeid's are relative to the rootpath, compute relative to cwd. if self.invocation_params.dir != self.rootpath: fullpath = self.rootpath / nodeid nodeid = bestrelpath(self.invocation_params.dir, fullpath) return nod...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,045
bestrelpath
ref
function
nodeid = bestrelpath(self.invocation_params.dir, fullpath)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,049
fromdictargs
def
function
def fromdictargs(cls, option_dict, args) -> "Config": """Constructor usable for subprocesses.""" config = get_config(args) config.option.__dict__.update(option_dict) config.parse(args, addopts=_False) for x in config.option.plugins: config.pluginmanager.consider_p...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,051
get_config
ref
function
config = get_config(args)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,053
parse
ref
function
config.parse(args, addopts=False)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,055
consider_pluginarg
ref
function
config.pluginmanager.consider_pluginarg(x)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,058
_processopt
def
function
def _processopt(self, opt: "Argument") -> None: for name in opt._short_opts + opt._long_opts: self._opt2dest[name] = opt.dest if hasattr(opt, "default"): if not hasattr(self.option, opt.dest): setattr(self.option, opt.dest, opt.default) @hookimpl(trylast...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,066
hookimpl
ref
function
@hookimpl(trylast=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,067
pytest_load_initial_conftests
def
function
def pytest_load_initial_conftests(self, early_config: "Config") -> None: self.pluginmanager._set_initial_conftests( early_config.known_args_namespace, rootpath=early_config.rootpath ) def _initini(self, args: Sequence[str]) -> None: ns, unknown_args = self._parser.parse_know...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,068
_set_initial_conftests
ref
function
self.pluginmanager._set_initial_conftests(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,072
_initini
def
function
def _initini(self, args: Sequence[str]) -> None: ns, unknown_args = self._parser.parse_known_and_unknown_args( args, namespace=copy.copy(self.option) ) rootpath, inipath, inicfg = determine_setup( ns.inifilename, ns.file_or_dir + unknown_args, ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,073
parse_known_and_unknown_args
ref
function
ns, unknown_args = self._parser.parse_known_and_unknown_args(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,076
determine_setup
ref
function
rootpath, inipath, inicfg = determine_setup(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,087
addini
ref
function
self._parser.addini("addopts", "extra command line options", "args")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,088
addini
ref
function
self._parser.addini("minversion", "minimally required pytest version")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,089
addini
ref
function
self._parser.addini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,097
_consider_importhook
def
function
def _consider_importhook(self, args: Sequence[str]) -> None: """Install the PEP 302 import hook if using assertion rewriting. Needs to parse the --assert=<mode> option from the commandline and find all the installed plugins to mark them for rewriting by the importhook. """ ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,104
parse_known_and_unknown_args
ref
function
ns, unknown_args = self._parser.parse_known_and_unknown_args(args)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,110
install_importhook
ref
function
hook = _pytest.assertion.install_importhook(self)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,114
_mark_plugins_for_rewrite
ref
function
self._mark_plugins_for_rewrite(hook)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,115
_warn_about_missing_assertion
ref
function
self._warn_about_missing_assertion(mode)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,117
_mark_plugins_for_rewrite
def
function
def _mark_plugins_for_rewrite(self, hook) -> None: """Given an importhook, mark for rewrite any top-level modules or packages in the distribution package for all pytest plugins.""" self.pluginmanager.rewrite_hook = hook if os.environ.get("PYTEST_DISABLE_PLUGIN_AUTOLOAD"): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,129
distributions
ref
function
for dist in importlib_metadata.distributions()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,134
_iter_rewritable_modules
ref
function
for name in _iter_rewritable_modules(package_files):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,135
mark_rewrite
ref
function
hook.mark_rewrite(name)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,137
_validate_args
def
function
def _validate_args(self, args: List[str], via: str) -> List[str]: """Validate known args.""" self._parser._config_source_hint = via # type: ignore try: self._parser.parse_known_and_unknown_args( args, namespace=copy.copy(self.option) ) finally...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,141
parse_known_and_unknown_args
ref
function
self._parser.parse_known_and_unknown_args(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,149
_preparse
def
function
null
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,154
_validate_args
ref
function
self._validate_args(shlex.split(env_addopts), "via PYTEST_ADDOPTS")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,157
_initini
ref
function
self._initini(args)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,160
_validate_args
ref
function
self._validate_args(self.getini("addopts"), "via addopts config") + args
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,160
getini
ref
function
self._validate_args(self.getini("addopts"), "via addopts config") + args
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,163
parse_known_args
ref
function
self.known_args_namespace = self._parser.parse_known_args(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,166
_checkversion
ref
function
self._checkversion()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,167
_consider_importhook
ref
function
self._consider_importhook(args)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,168
consider_preparse
ref
function
self.pluginmanager.consider_preparse(args, exclude_only=False)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,172
load_setuptools_entrypoints
ref
function
self.pluginmanager.load_setuptools_entrypoints("pytest11")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,173
consider_env
ref
function
self.pluginmanager.consider_env()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,175
parse_known_args
ref
function
self.known_args_namespace = self._parser.parse_known_args(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,179
_validate_plugins
ref
function
self._validate_plugins()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/config/__init__.py
src/_pytest/config/__init__.py
1,180
_warn_about_skipped_plugins
ref
function
self._warn_about_skipped_plugins()