Skip to content

Commit

Permalink
tests: remove obsolete commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Peterson444 committed Oct 2, 2023
1 parent b482e23 commit 7261d6c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions subiquity/server/controllers/tests/test_filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ class TestSubiquityControllerFilesystem(IsolatedAsyncioTestCase):
def setUp(self):
self.app = make_app()
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.block_log_dir = "/inexistent"
Expand Down Expand Up @@ -1149,8 +1147,6 @@ def setUp(self):
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()))
Expand Down
4 changes: 0 additions & 4 deletions subiquity/server/controllers/tests/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ def setUp(self):
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"

Expand Down Expand Up @@ -199,8 +197,6 @@ def test_generic_config(self):
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)
Expand Down
2 changes: 0 additions & 2 deletions subiquity/server/controllers/tests/test_refresh.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
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()))
Expand Down
2 changes: 0 additions & 2 deletions subiquity/server/controllers/tests/test_snaplist.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ def setUp(self):
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
Expand Down

0 comments on commit 7261d6c

Please sign in to comment.