tests: remove obsolete commands
This commit is contained in:
parent
39f1ea9cb6
commit
8f28063b92
|
@ -91,8 +91,6 @@ class TestSubiquityControllerFilesystem(IsolatedAsyncioTestCase):
|
|||
self.app = make_app()
|
||||
self.app.opts.bootloader = "UEFI"
|
||||
self.app.command_runner = mock.AsyncMock()
|
||||
self.app.report_start_event = mock.Mock()
|
||||
self.app.report_finish_event = mock.Mock()
|
||||
self.app.prober = mock.Mock()
|
||||
self.app.prober.get_storage = mock.AsyncMock()
|
||||
self.app.block_log_dir = "/inexistent"
|
||||
|
@ -1177,8 +1175,6 @@ class TestCoreBootInstallMethods(IsolatedAsyncioTestCase):
|
|||
self.app = make_app()
|
||||
self.app.command_runner = mock.AsyncMock()
|
||||
self.app.opts.bootloader = "UEFI"
|
||||
self.app.report_start_event = mock.Mock()
|
||||
self.app.report_finish_event = mock.Mock()
|
||||
self.app.prober = mock.Mock()
|
||||
self.app.prober.get_storage = mock.AsyncMock()
|
||||
self.app.snapdapi = snapdapi.make_api_client(AsyncSnapd(get_fake_connection()))
|
||||
|
|
|
@ -34,8 +34,6 @@ class TestWriteConfig(unittest.IsolatedAsyncioTestCase):
|
|||
self.controller = InstallController(make_app())
|
||||
self.controller.write_config = unittest.mock.Mock()
|
||||
self.controller.app.note_file_for_apport = Mock()
|
||||
self.controller.app.report_start_event = Mock()
|
||||
self.controller.app.report_finish_event = Mock()
|
||||
|
||||
self.controller.model.target = "/target"
|
||||
|
||||
|
@ -199,8 +197,6 @@ efi_state_with_dup_rp = EFIBootState(
|
|||
class TestInstallController(unittest.IsolatedAsyncioTestCase):
|
||||
def setUp(self):
|
||||
self.controller = InstallController(make_app())
|
||||
self.controller.app.report_start_event = Mock()
|
||||
self.controller.app.report_finish_event = Mock()
|
||||
self.controller.model.target = tempfile.mkdtemp()
|
||||
os.makedirs(os.path.join(self.controller.model.target, "etc/grub.d"))
|
||||
self.addCleanup(shutil.rmtree, self.controller.model.target)
|
||||
|
|
|
@ -26,8 +26,6 @@ from subiquitycore.tests.mocks import make_app
|
|||
class TestRefreshController(SubiTestCase):
|
||||
def setUp(self):
|
||||
self.app = make_app()
|
||||
self.app.report_start_event = mock.Mock()
|
||||
self.app.report_finish_event = mock.Mock()
|
||||
self.app.note_data_for_apport = mock.Mock()
|
||||
self.app.prober = mock.Mock()
|
||||
self.app.snapdapi = snapdapi.make_api_client(AsyncSnapd(get_fake_connection()))
|
||||
|
|
|
@ -31,8 +31,6 @@ class TestSnapdSnapInfoLoader(unittest.IsolatedAsyncioTestCase):
|
|||
self.model = SnapListModel()
|
||||
self.app = make_app()
|
||||
self.app.snapd = AsyncMock()
|
||||
self.app.report_start_event = Mock()
|
||||
self.app.report_finish_event = Mock()
|
||||
|
||||
self.loader = SnapdSnapInfoLoader(
|
||||
self.model, self.app.snapd, "server", self.app.context
|
||||
|
|
Loading…
Reference in New Issue