mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Reset the name to valid package in npm cache_cleaned unit test
This commit is contained in:
parent
47f8aeee97
commit
b5815d367e
@ -181,6 +181,7 @@ class NpmTestCase(TestCase):
|
||||
comt = ('Package {0} is not in the cache'.format(non_cached_pkg))
|
||||
pkg_ret.update({'name': non_cached_pkg, 'result': True, 'comment': comt})
|
||||
self.assertDictEqual(npm.cache_cleaned(non_cached_pkg), pkg_ret)
|
||||
pkg_ret.update({'name': name})
|
||||
|
||||
with patch.dict(npm.__opts__, {'test': True}):
|
||||
comt = ('Cached packages set to be removed')
|
||||
|
Loading…
Reference in New Issue
Block a user