Skip to content

Commit 88161db

Browse files
committed
tests: update for changed mocks
Mocks got two internal qubes: default-mgmt-dvm and disp-mgmt. Both marked as internal and should be excluded from backup.
1 parent a864c40 commit 88161db

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

qubesmanager/tests/test_backup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@ def _get_vms_from_widget(widget: QtWidgets.QListWidget):
5757
def test_00_load_backup(backup_dlg):
5858
expected_selected_vms = [
5959
f"{vm.name} ({vm.klass})" for vm in
60-
backup_dlg.qubes_app.domains if vm.include_in_backups]
60+
backup_dlg.qubes_app.domains if vm.include_in_backups
61+
and not vm.features.get("internal", False)]
6162
expected_avail_vms = [
6263
f"{vm.name} ({vm.klass})" for vm in
63-
backup_dlg.qubes_app.domains if not vm.include_in_backups]
64+
backup_dlg.qubes_app.domains if not vm.include_in_backups
65+
and not vm.features.get("internal", False)]
6466
avail_vms = _get_vms_from_widget(
6567
backup_dlg.select_vms_widget.available_list)
6668
selected_vms = _get_vms_from_widget(

0 commit comments

Comments
 (0)