@@ -75,6 +75,9 @@ def test_qubes_global_config():
7575def test_global_config_init (
7676 mock_error , mock_subprocess , test_qapp , test_policy_manager , test_builder
7777):
78+ test_qapp .expected_calls [
79+ ("dom0" , "admin.vm.feature.Get" , "preload-dispvm-max" , None )
80+ ] = b"0\x00 "
7881 mock_subprocess .return_value = b""
7982 app = GlobalConfig (test_qapp , test_policy_manager )
8083 # do not call do_activate - it will make Gtk confused and, in case
@@ -140,6 +143,9 @@ def test_global_config_init(
140143def test_global_config_page_change (
141144 mock_error , mock_subprocess , test_qapp , test_policy_manager , test_builder
142145):
146+ test_qapp .expected_calls [
147+ ("dom0" , "admin.vm.feature.Get" , "preload-dispvm-max" , None )
148+ ] = b"0\x00 "
143149 mock_subprocess .return_value = b""
144150 app = GlobalConfig (test_qapp , test_policy_manager )
145151 # do not call do_activate - it will make Gtk confused and, in case
@@ -238,6 +244,9 @@ def test_global_config_page_change(
238244def test_global_config_failure (
239245 mock_error , mock_subprocess , test_qapp , test_policy_manager , test_builder
240246):
247+ test_qapp .expected_calls [
248+ ("dom0" , "admin.vm.feature.Get" , "preload-dispvm-max" , None )
249+ ] = b"0\x00 "
241250 mock_subprocess .return_value = b""
242251 app = GlobalConfig (test_qapp , test_policy_manager )
243252 # do not call do_activate - it will make Gtk confused and, in case
@@ -302,6 +311,9 @@ def test_global_config_broken_system(
302311def test_global_config_open_at (
303312 mock_error , mock_subprocess , test_qapp , test_policy_manager , real_builder
304313):
314+ test_qapp .expected_calls [
315+ ("dom0" , "admin.vm.feature.Get" , "preload-dispvm-max" , None )
316+ ] = b"0\x00 "
305317 mock_subprocess .return_value = b""
306318 app = GlobalConfig (test_qapp , test_policy_manager )
307319 # do not call do_activate - it will make Gtk confused and, in case
0 commit comments