(monkeypatch: MonkeyPatch)
| 30 | |
| 31 | |
| 32 | def 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 | |
| 59 | def test_correct_parsing_args( |
nothing calls this directly
no test coverage detected