Skip to content

Commit

Permalink
composer.install module does not support always_check, only the state…
Browse files Browse the repository at this point in the history
… does. Removing the test on the module.
  • Loading branch information
Ross Perkins committed Mar 11, 2015
1 parent cad2659 commit d15f867
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/unit/modules/composer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,6 @@ def test_install(self):
with patch.dict(composer.__salt__, {'cmd.run_all': mock}):
self.assertEqual(composer.install('dir'), rval)

# Test success with existing vendor directory and always_check=False returns object
mock = MagicMock(return_value=True)
with patch.object(composer, '_valid_composer', mock):
mock = MagicMock(return_value=True)
with patch.object(composer, 'did_composer_install', mock):
rval = {'retcode': 0, 'stderr': 'A', 'stdout': 'B'}
mock = MagicMock(return_value=rval)
with patch.dict(composer.__salt__, {'cmd.run_all': mock}):
self.assertEqual(composer.install('dir', always_check=False), rval)

def test_update(self):
'''
Test for Update composer dependencies for a directory.
Expand Down

0 comments on commit d15f867

Please sign in to comment.