US06-03: Preserve Offline Identity and Review Evidence (#79)
This commit was merged in pull request #79.
This commit is contained in:
@@ -167,7 +167,8 @@ def test_missing_file_is_flagged_not_deleted(
|
||||
assets = assets_by_id(make_factory(db_url))
|
||||
assert missing_id in assets # not pruned
|
||||
assert assets[missing_id].missing_at is not None
|
||||
assert assets[missing_id].availability_state == "active"
|
||||
# Nothing explains the absence: this is not an offline archive medium (US06-03).
|
||||
assert assets[missing_id].availability_state == "missing_unexpected"
|
||||
|
||||
|
||||
def test_reappearing_file_clears_missing(
|
||||
@@ -186,6 +187,7 @@ def test_reappearing_file_clears_missing(
|
||||
inventory.scan(lib)
|
||||
assets = assets_by_id(make_factory(db_url))
|
||||
assert assets[asset_id].missing_at is None
|
||||
assert assets[asset_id].availability_state == "active"
|
||||
|
||||
|
||||
def test_identity_and_state_durable_across_restart(
|
||||
|
||||
Reference in New Issue
Block a user