controller tests: move setting autoinstall_default

Move the assignment of autoinstall_default to the relevant block
where it's being tested.
This commit is contained in:
Chris Peterson 2024-01-23 14:10:11 -08:00
parent eae97db849
commit 20759840b9
1 changed files with 1 additions and 1 deletions

View File

@ -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")