mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-12-16 14:45:48 -07:00
Fixed Launch Script / Fixed Site List / Fixed Database Behavior
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user