mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Adding testcase for this fix.
This commit is contained in:
parent
d2513757ed
commit
db35d0c1e1
1 changed files with 2 additions and 0 deletions
|
@ -361,6 +361,8 @@ class ZypperTestCase(TestCase, LoaderModuleMockMixin):
|
|||
ZyppCallMock(return_value=get_test_data('zypper-available.txt'))), \
|
||||
patch('salt.modules.zypper.refresh_db', MagicMock(return_value=True)):
|
||||
self.assertEqual(zypper.latest_version('vim'), '7.4.326-2.62')
|
||||
self.assertDictEqual(zypper.latest_version('vim', 'fakepkg'), {'vim': '7.4.326-2.62', 'fakepkg': ''})
|
||||
|
||||
|
||||
def test_upgrade_success(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue