vorta/tests
Henry Spanka e3451ed49e
Handle ctime and mtime diff changes (#1675)
Borg v1.2.4 added new change types called `mtime` and `ctime` for the modification and the creation time of a file.
Our diff json parser doesn't support these changes yet.
The plain text parser doesn't need to be updated since it is only used for earlier versions of borg.
This also extends the tooltip in the diff view to show changes in `ctime` or `mtime` in a localised manner.

* src/vorta/views/diff_result.py (ChangeType): Add `CTIME` and `MTIME` linking to `MODIFIED`.

* src/vorta/views/diff_result.py (DiffData): Add fields `ctime_change` and `mtime_change`.

* src/vorta/views/diff_result.py (parse_diff_json): Parse the new change types.

* src/vorta/views/diff_result.py (DiffTree.data): Add time changes to tooltip in a human readable format.

* tests/test_diff.py : Update test data to include new change types. Add additional test cases for unittesting the new change types.
2023-04-03 10:16:09 +02:00
..
borg_json_output Handle empty path in `FileTreeModel.addItem`. (#1552) 2023-01-20 12:51:53 +00:00
network_manager Run hooks on the code base. 2022-08-16 18:20:34 +02:00
profile_exports Remove APScheduler dependency, Python 3.10 support (#1086) 2021-10-27 08:37:28 +04:00
__init__.py Apply automatic formatting 2022-08-15 15:23:55 +02:00
conftest.py Run hooks on the code base. 2022-08-16 18:20:34 +02:00
test_archives.py feat: add profile name to log messages (#1637) 2023-03-22 12:16:46 +01:00
test_borg.py Refactor: Split up vorta/models.py (#1112) 2021-11-17 13:14:11 +04:00
test_create.py Add support for `--paths-from-command` to extra borg arguments. (#1538) 2023-01-18 15:57:23 +00:00
test_diff.py Handle ctime and mtime diff changes (#1675) 2023-04-03 10:16:09 +02:00
test_extract.py Apply automatic formatting 2022-08-15 15:23:55 +02:00
test_import_export.py Run hooks on the code base. 2022-08-16 18:20:34 +02:00
test_lock.py feat: add profile name to log messages (#1637) 2023-03-22 12:16:46 +01:00
test_misc.py Add tooltips to settings. (#1521) 2023-02-25 10:10:43 +00:00
test_notifications.py Apply automatic formatting 2022-08-15 15:23:55 +02:00
test_profile.py Remove unnecessary qtbot.wait (#1172) 2022-01-24 17:05:57 +04:00
test_repo.py feat: add profile name to log messages (#1637) 2023-03-22 12:16:46 +01:00
test_schedule.py Run hooks on the code base. 2022-08-16 18:20:34 +02:00
test_scheduler.py Run hooks on the code base. 2022-08-16 18:20:34 +02:00
test_source.py Run hooks on the code base. 2022-08-16 18:20:34 +02:00
test_treemodel.py Handle empty path in `FileTreeModel.addItem`. (#1552) 2023-01-20 12:51:53 +00:00
test_utils.py Improve size column readability in archives tab (#1598) 2023-02-21 21:01:49 +00:00