1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-22 07:43:09 +00:00
vorta/tests
real-yfprojects c8ba273079
Use new treemodel for diff view.
Subclass `treemodel.FileTreeModel` for the purposes of the diff dialog.
Rewrite diff output parsing.
Add sorting through `QSortFilterProxyModel`.

* src/vorta/views/diff_result.py (DiffResult.__init__): Remove doubled if statement.

* src/vorta/views/diff_result.py : Rename `DiffResult` to `DiffResultDialog`.

* src/vorta/views/diff_result.py (DiffTree.__init__): Remove the use of `QVariant`.
	Since python has no type enforcement `QVariant` is not needed.

* src/vorta/views/diff_result.py (DiffTree): Subclass `treemodel.FileTreeModel` and add additional info tooltip.

* src/vorta/views/diff_result.py (parse_diff_json): Some changes for use with new model.

* src/vorta/views/diff_result.py (parse_diff_lines): Full regex based line parsing and
	other modifications to go with the new model.

* src/vorta/views/diff_result.py (FileType): Enum of possible file types.

* src/vorta/views/diff_result.py (ChangeType): Enum of possible change types.
	Currently all are mapped to `ADDED`, `MODIFIED` and `REMOVED`.

* src/vorta/views/diff_result.py (calc_size): Rename to `size_to_byte`.

* src/vorta/assets/UI/diffresult.ui : Move `alternatingRowColours` to the .ui file.

* src/vorta/views/diff_result.py (DiffResultDialog): Move `alternatingRowColours` to the .ui file.

* tests/test_diff.py : Fix tests for diff parser.

* src/vorta/views/diff_result.py : Connect to `sorted` of `DiffSortProxyModel`
	to reveal selected items in view.

* src/vorta/views/partials/treemodel.py : Add `FileTreeSortProxyModel` with abstract code.

* src/vorta/views/diff_result.py (DiffSortProxyModel): Implement `FileTreeSortProxyModel`.

* src/vorta/views/diff_result.py (DiffItem): This variable holds the type `FileSystemItem[DiffData]`.
2022-07-25 16:13:27 +02:00
..
borg_json_output Support new borg compact command (#1205) 2022-02-21 21:23:56 +04:00
network_manager Handle DBusException in NetworkManagerMonitor (#636) 2020-09-09 08:32:26 +08:00
profile_exports Remove APScheduler dependency, Python 3.10 support (#1086) 2021-10-27 08:37:28 +04:00
__init__.py Refactor: Split up vorta/models.py (#1112) 2021-11-17 13:14:11 +04:00
conftest.py Only schedule backup after a manual run, improve labels. @real-yfprojects (#1302) 2022-05-21 15:06:10 +04:00
test_archives.py Add a button to mount full repository. By @real-yfprojects (#1257) 2022-04-16 09:30:31 +04:00
test_borg.py Refactor: Split up vorta/models.py (#1112) 2021-11-17 13:14:11 +04:00
test_diff.py Use new treemodel for diff view. 2022-07-25 16:13:27 +02:00
test_import_export.py Refactor: Split up vorta/models.py (#1112) 2021-11-17 13:14:11 +04:00
test_lock.py Implement multiple queues. By @bastiencyr (#1045) 2021-10-04 15:31:41 +04:00
test_misc.py Improve UX and HIG-conformity. By @real-yfprojects (#1176) 2022-03-24 10:27:07 +04:00
test_notifications.py Refactor: Split up vorta/models.py (#1112) 2021-11-17 13:14:11 +04:00
test_profile.py Remove unnecessary qtbot.wait (#1172) 2022-01-24 17:05:57 +04:00
test_repo.py Improve UX and HIG-conformity. By @real-yfprojects (#1176) 2022-03-24 10:27:07 +04:00
test_schedule.py Remove call to QTranslator.language() in get_locale. (#1316) 2022-05-25 19:42:54 +04:00
test_scheduler.py Only schedule backup after a manual run, improve labels. @real-yfprojects (#1302) 2022-05-21 15:06:10 +04:00
test_source.py Improve UX and HIG-conformity. By @real-yfprojects (#1176) 2022-03-24 10:27:07 +04:00
test_treemodel.py Implement fresh TreeModel for TreeViews. 2022-07-25 16:13:26 +02:00
test_utils.py More test fixes, avoid segfault when quitting (#877) 2021-02-22 09:45:43 +08:00