12 lines
472 B
Python
12 lines
472 B
Python
from pathlib import Path
|
|
|
|
|
|
def test_installer_launches_admin_application_with_elevated_setup_token() -> None:
|
|
script = Path("installer/SyncVito.iss").read_text(encoding="utf-8")
|
|
run_entries = [line for line in script.splitlines() if line.startswith("Filename:")]
|
|
|
|
assert len(run_entries) == 2
|
|
assert all("runascurrentuser" in entry for entry in run_entries)
|
|
assert "postinstall" in run_entries[0]
|
|
assert 'Parameters: "--updated"' in run_entries[1]
|