Test: update to catch refactoring

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
Hiroshi Miura
2020-11-22 09:55:44 +09:00
parent df8c4a17ae
commit efe2501cb4

View File

@@ -15,7 +15,7 @@ def test_cli_unknown_version(capsys):
" Server response code: 404, reason code: Not Found".format(wrong_url)
]
with pytest.raises(SystemExit) as pytest_wrapped_e:
cli = aqt.cli.Cli()
cli = aqt.installer.Cli()
cli.run(["install", wrong_version, "mac", "desktop"])
assert pytest_wrapped_e.type == SystemExit
assert pytest_wrapped_e.value.code == 1