mirror of
https://github.com/lobaro/restic-backup-docker.git
synced 2026-11-13 15:45:22 +00:00
test: assert the success message first in the corruption test
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7875361dac
commit
a427b0f164
1 file changed
+1
-1
@@ -250,8 +250,8 @@ class TestCorruptedRepository:
|
||||
|
||||
def test_corruption_not_reported_successful(self, corrupt_run):
|
||||
"""a corrupted repository is not reported as successful"""
|
||||
assert "Check Failed with Status" in corrupt_run.check.out # it did run and report
|
||||
assert "Check Successful" not in corrupt_run.check.out
|
||||
assert "Check Failed with Status" in corrupt_run.check.out # the check did run and report
|
||||
|
||||
def test_failing_check_writes_error_log(self, corrupt_run):
|
||||
"""failing check writes check-error-last.log"""
|
||||
|
||||
Reference in new issue
Block a user