code drop in config: remove cli argument dropping from locate_config
its already taken care of earlier
This commit is contained in:
parent
17514c15db
commit
5c3fea0d8b
|
@ -143,12 +143,11 @@ def load_config_dict_from_file(path: Path) -> PARSE_RESULT:
|
||||||
|
|
||||||
|
|
||||||
def locate_config(
|
def locate_config(
|
||||||
args: Iterable[Path],
|
args: List[Path],
|
||||||
) -> Tuple[Optional[Path], Optional[Path], Dict[str, Union[str, List[str]]]]:
|
) -> Tuple[Optional[Path], Optional[Path], Dict[str, Union[str, List[str]]]]:
|
||||||
"""Search in the list of arguments for a valid ini-file for pytest,
|
"""Search in the list of arguments for a valid ini-file for pytest,
|
||||||
and return a tuple of (rootdir, inifile, cfg-dict)."""
|
and return a tuple of (rootdir, inifile, cfg-dict)."""
|
||||||
|
|
||||||
args = [x for x in args if not str(x).startswith("-")]
|
|
||||||
if not args:
|
if not args:
|
||||||
args = [Path.cwd()]
|
args = [Path.cwd()]
|
||||||
for arg in args:
|
for arg in args:
|
||||||
|
|
Loading…
Reference in New Issue