From 20759840b95252c17299ae69a8a5f830ba6fba0e Mon Sep 17 00:00:00 2001 From: Chris Peterson Date: Tue, 23 Jan 2024 14:10:11 -0800 Subject: [PATCH] controller tests: move setting autoinstall_default Move the assignment of autoinstall_default to the relevant block where it's being tested. --- subiquity/server/tests/test_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subiquity/server/tests/test_controller.py b/subiquity/server/tests/test_controller.py index b1c0826c..b5af4fbb 100644 --- a/subiquity/server/tests/test_controller.py +++ b/subiquity/server/tests/test_controller.py @@ -41,7 +41,6 @@ class TestController(SubiTestCase): } self.controller.autoinstall_key = "sample" self.controller.autoinstall_key_alias = "sample-alias" - self.controller.autoinstall_default = "default-data" self.controller.setup_autoinstall() mock_load.assert_called_once_with("some-sample-data") @@ -56,5 +55,6 @@ class TestController(SubiTestCase): mock_load.reset_mock() self.controller.autoinstall_key = "inexistent" self.controller.autoinstall_key_alias = "inexistent" + self.controller.autoinstall_default = "default-data" self.controller.setup_autoinstall() mock_load.assert_called_once_with("default-data")