Skip to content

Commit 6a1bb69

Browse files
committed
Fix tests after increasing qube count on mock_app
For: QubesOS/qubes-core-admin-client#422 For: QubesOS/qubes-core-admin-client#411
1 parent a89069d commit 6a1bb69

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

qubes_config/tests/test_usb_devices.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ def test_u2f_handler_save_complex(test_qapp, test_policy_manager, real_builder):
858858
call(test_qapp.domains["fedora-35"], handler.SERVICE_FEATURE, True)
859859
in mock_apply.mock_calls
860860
)
861-
assert len(mock_apply.mock_calls) == 2
861+
assert len(mock_apply.mock_calls) == 3
862862

863863
expected_rules = handler.policy_manager.text_to_rules(
864864
"""
@@ -917,7 +917,7 @@ def test_u2f_handler_save_complex_2(test_qapp, test_policy_manager, real_builder
917917
call(test_qapp.domains["fedora-35"], handler.SERVICE_FEATURE, True)
918918
in mock_apply.mock_calls
919919
)
920-
assert len(mock_apply.mock_calls) == 2
920+
assert len(mock_apply.mock_calls) == 3
921921

922922
expected_rules = handler.policy_manager.text_to_rules(
923923
"""

qui/updater/tests/test_intro_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_populate_vm_list(
6464
assert len(sut.get_vms_to_update()) == 2
6565

6666

67-
N_QUBES = 17
67+
N_QUBES = 19
6868

6969

7070
# i-th expectations value is an expected number of selected VMs after clicking on the

qui/updater/tests/test_summary_page.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_on_header_toggled(
9696
sut.head_checkbox._allowed[0] = AppVMType.SERVICEVM
9797
service_num = 3
9898
sut.head_checkbox._allowed[1] = AppVMType.NON_SERVICEVM
99-
non_excluded_num = 10
99+
non_excluded_num = 11
100100

101101
sut.head_checkbox.state = HeaderCheckbox.NONE
102102

@@ -176,9 +176,9 @@ def test_on_checkbox_toggled(
176176

177177

178178
# expected data based on test_qapp setup
179-
UP_VMS = 11
179+
UP_VMS = 12
180180
UP_SERVICE_VMS = 3
181-
UP_APP_VMS = 8
181+
UP_APP_VMS = 9
182182

183183

184184
@pytest.mark.parametrize(
@@ -379,6 +379,7 @@ def test_perform_restart(
379379
"sys-net",
380380
"sys-usb",
381381
"default-dvm",
382+
"default-mgmt-dvm",
382383
"test-alt-dvm",
383384
"test-alt-dvm-running",
384385
"test-blue",

0 commit comments

Comments
 (0)