MCPcopy Index your code
hub / github.com/archlinux/archinstall / test_default_args

Function test_default_args

tests/test_args.py:32–56  ·  view source on GitHub ↗
(monkeypatch: MonkeyPatch)

Source from the content-addressed store, hash-verified

30
31
32def test_default_args(monkeypatch: MonkeyPatch) -> None:
33 monkeypatch.setattr('sys.argv', ['archinstall'])
34 handler = ArchConfigHandler()
35 args = handler.args
36 assert args == Arguments(
37 config=None,
38 config_url=None,
39 creds=None,
40 creds_url=None,
41 creds_decryption_key=None,
42 silent=False,
43 dry_run=False,
44 script=None,
45 mountpoint=Path('/mnt'),
46 skip_ntp=False,
47 skip_wkd=False,
48 skip_boot=False,
49 debug=False,
50 offline=False,
51 no_pkg_lookups=False,
52 plugin=None,
53 plugin_url=None,
54 skip_version_check=False,
55 advanced=False,
56 )
57
58
59def test_correct_parsing_args(

Callers

nothing calls this directly

Calls 2

ArchConfigHandlerClass · 0.90
ArgumentsClass · 0.90

Tested by

no test coverage detected