_pytest.config.findpaths module

exists(path, ignore=<class 'OSError'>)[source]
getcfg(args, config=None)[source]

Search the list of arguments for a valid ini-file for pytest, and return a tuple of (rootdir, inifile, cfg-dict).

note: config is optional and used only to issue warnings explicitly (#2891).

get_common_ancestor(paths: Iterable[py._path.local.LocalPath]) → py._path.local.LocalPath[source]
get_dirs_from_args(args: List[str]) → List[py._path.local.LocalPath][source]
determine_setup(inifile: Optional[str], args: List[str], rootdir_cmd_arg: Optional[str] = None, config: Optional[Config] = None) → Tuple[py._path.local.LocalPath, Optional[str], Any][source]