Fixed Launch Script / Fixed Site List / Fixed Database Behavior

This commit is contained in:
2025-11-13 21:15:31 -07:00
parent b3f418323c
commit 0bf2e2f099
9 changed files with 153 additions and 62 deletions

View File

@@ -24,14 +24,15 @@ def test_payload_manager_store_update_delete(tmp_path: Path) -> None:
staging_path = staging_root / "abc123" / descriptor.file_name
runtime_path = runtime_root / "abc123" / descriptor.file_name
assert staging_path.is_file()
assert runtime_path.is_file()
assert not staging_path.exists()
assert descriptor.size_bytes == len(content)
updated = manager.update_payload(descriptor, content + "-v2")
assert updated.size_bytes == len(content + "-v2")
assert staging_path.read_text(encoding="utf-8").endswith("-v2")
assert runtime_path.read_text(encoding="utf-8").endswith("-v2")
assert not staging_path.exists()
manager.delete_payload(descriptor)
assert not staging_path.exists()
assert not runtime_path.exists()
assert not staging_path.exists()