@@ -75,6 +75,9 @@ def test_qubes_global_config():
75
75
def test_global_config_init(
76
76
mock_error, mock_subprocess, test_qapp, test_policy_manager, test_builder
77
77
):
78
+ test_qapp.expected_calls[
79
+ ("dom0", "admin.vm.feature.Get", "preload-dispvm-max", None)
80
+ ] = b"0\x00"
78
81
mock_subprocess.return_value = b""
79
82
app = GlobalConfig(test_qapp, test_policy_manager)
80
83
# do not call do_activate - it will make Gtk confused and, in case
@@ -140,6 +143,9 @@ def test_global_config_init(
140
143
def test_global_config_page_change(
141
144
mock_error, mock_subprocess, test_qapp, test_policy_manager, test_builder
142
145
):
146
+ test_qapp.expected_calls[
147
+ ("dom0", "admin.vm.feature.Get", "preload-dispvm-max", None)
148
+ ] = b"0\x00"
143
149
mock_subprocess.return_value = b""
144
150
app = GlobalConfig(test_qapp, test_policy_manager)
145
151
# do not call do_activate - it will make Gtk confused and, in case
@@ -238,6 +244,9 @@ def test_global_config_page_change(
238
244
def test_global_config_failure(
239
245
mock_error, mock_subprocess, test_qapp, test_policy_manager, test_builder
240
246
):
247
+ test_qapp.expected_calls[
248
+ ("dom0", "admin.vm.feature.Get", "preload-dispvm-max", None)
249
+ ] = b"0\x00"
241
250
mock_subprocess.return_value = b""
242
251
app = GlobalConfig(test_qapp, test_policy_manager)
243
252
# do not call do_activate - it will make Gtk confused and, in case
@@ -302,6 +311,9 @@ def test_global_config_broken_system(
302
311
def test_global_config_open_at(
303
312
mock_error, mock_subprocess, test_qapp, test_policy_manager, real_builder
304
313
):
314
+ test_qapp.expected_calls[
315
+ ("dom0", "admin.vm.feature.Get", "preload-dispvm-max", None)
316
+ ] = b"0\x00"
305
317
mock_subprocess.return_value = b""
306
318
app = GlobalConfig(test_qapp, test_policy_manager)
307
319
# do not call do_activate - it will make Gtk confused and, in case
0 commit comments