Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jsingle committed Sep 9, 2015
1 parent 0212c62 commit e55e473
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/unit/commands/assets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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()
Expand Down

0 comments on commit e55e473

Please sign in to comment.