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:
parent
eae97db849
commit
20759840b9
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue