MCPcopy
hub / github.com/pytest-dev/pytest / _validate_args

Method _validate_args

src/_pytest/config/__init__.py:1383–1393  ·  src/_pytest/config/__init__.py::Config._validate_args

Validate known args.

(self, args: list[str], via: str)

Source from the content-addressed store, hash-verified

1381 sys.path.remove(path_str)
1382
1383 def _validate_args(self, args: list[str], via: str) -> list[str]:
1384 class="st">""class="st">"Validate known args."class="st">""
1385 self._parser.extra_info[class="st">"config source"] = via
1386 try:
1387 self._parser.parse_known_and_unknown_args(
1388 args, namespace=copy.copy(self.option)
1389 )
1390 finally:
1391 self._parser.extra_info.pop(class="st">"config source", None)
1392
1393 return args
1394
1395 def _decide_args(
1396 self,

Callers 1

parseMethod · 0.95

Calls 3

copyMethod · 0.80
popMethod · 0.80

Tested by

no test coverage detected