Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions packages/flow/tests/test_quickstart_encrypted.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def test_quickstart_on_a_fresh_machine_seals_every_run(
outcome = run_quickstart(
root,
visible=False,
break_it=True,
last_act=True,
verbose=False,
steps=next_steps(lambda command: command, str, True),
stream=stream,
Expand All @@ -103,14 +103,16 @@ def test_quickstart_on_a_fresh_machine_seals_every_run(
output = stream.getvalue()
runs = len(FlowEngine.inputs)
assert outcome.checked == runs, output
assert outcome.broken is not None and outcome.broken.stopped, output
assert outcome.restart is not None and outcome.restart.held, output
# Encryption really was on: a key was made under the empty home.
assert "Created a local encryption key" in output
assert (fresh_machine / ".openadapt" / "keys").is_dir()

sealed = sorted(p.parent for p in root.rglob(sealed_set.HEADER))
names = {p.name for p in sealed}
assert {"recording", "bundle", "run-1", "run-broken"} <= names, names
# Act 3 (#2840): note 1 before the hard stop, then both notes after it.
act3 = {"note-1", "note-1-restart", "note-2-restart"}
assert {"recording", "bundle", "run-1"} | act3 <= names, names
for folder in sealed:
assert _unindexed(folder) == [], folder

Expand Down