Skip to content

Commit 07a945f

Browse files
committed
test: add isomtime field to fix test isolation in test_extract.py
Add isomtime field to test data default dictionary so tests work regardless of borg_compat.version state. The code uses either mtime or isomtime depending on borg version, so providing both ensures tests pass when run in isolation or alongside other tests.
1 parent 865b7c1 commit 07a945f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/unit/test_extract.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def prepare_borg(mocker, borg_json_output):
3131
"linktarget": "",
3232
"flags": None,
3333
"mtime": "2022-05-13T14:33:57.305797",
34+
"isomtime": "2022-05-13T14:33:57.305797",
3435
"size": 0,
3536
}
3637

0 commit comments

Comments
 (0)