diff --git a/tests/unit/commands/assets_test.py b/tests/unit/commands/assets_test.py index e695ce60..ff3f33c3 100644 --- a/tests/unit/commands/assets_test.py +++ b/tests/unit/commands/assets_test.py @@ -4,6 +4,7 @@ from ...testcases import DustyTestCase +@patch('dusty.commands.assets.initialize_docker_vm') @patch('dusty.commands.assets.asset_is_set') class TestAssetsCommands(DustyTestCase): def assertAppOrLibAssetListed(self, asset_name, path): @@ -14,19 +15,19 @@ def assertAssetListed(self, asset_name, used_by, required_by): self.assertTrue(any([asset_name in line and assets._get_string_of_set(used_by) in line and assets._get_string_of_set(required_by) in line for line in self.last_client_output.splitlines()])) - def test_list_by_app(self, fake_asset_is_set): + def test_list_by_app(self, fake_asset_is_set, *args): fake_asset_is_set.return_value = True assets.list_by_app_or_lib('app-a') self.assertAppOrLibAssetListed('required_asset', 'required_path') self.assertAppOrLibAssetListed('optional_asset', 'optional_path') - def test_list_by_lib(self, fake_asset_is_set): + def test_list_by_lib(self, fake_asset_is_set, *args): fake_asset_is_set.return_value = False assets.list_by_app_or_lib('lib-a') self.assertAppOrLibAssetListed('required_lib_asset', 'required_path') self.assertAppOrLibAssetListed('optional_lib_asset', 'optional_path') - def test_list(self, fake_asset_is_set): + def test_list(self, fake_asset_is_set, *args): fake_asset_is_set.return_value = True bundles.activate_bundle(['bundle-a']) assets.list_all()