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

Method fromdictargs

src/_pytest/config/__init__.py:1285–1292  ·  view source on GitHub ↗

Constructor usable for subprocesses.

(cls, option_dict: Mapping[str, Any], args: list[str])

Source from the content-addressed store, hash-verified

1283
1284 @classmethod
1285 def fromdictargs(cls, option_dict: Mapping[str, Any], args: list[str]) -> Config:
1286 """Constructor usable for subprocesses."""
1287 config = get_config(args)
1288 config.option.__dict__.update(option_dict)
1289 config.parse(args, addopts=False)
1290 for x in config.option.plugins:
1291 config.pluginmanager.consider_pluginarg(x)
1292 return config
1293
1294 def _processopt(self, opt: Argument) -> None:
1295 if not hasattr(self.option, opt.dest):

Callers 4

test_add_cleanupMethod · 0.80
test_basic_behaviorMethod · 0.80
test_inifilenameMethod · 0.80

Calls 4

get_configFunction · 0.85
updateMethod · 0.80
consider_pluginargMethod · 0.80
parseMethod · 0.45

Tested by 4

test_add_cleanupMethod · 0.64
test_basic_behaviorMethod · 0.64
test_inifilenameMethod · 0.64