mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
zypper_test: correct mock behavior
Previously incorrect, although the test passed
This commit is contained in:
parent
c2210d64ab
commit
a32ee4af05
@ -486,7 +486,7 @@ Repository 'DUMMY' not found by its alias, number, or URI.
|
||||
:return:
|
||||
'''
|
||||
def _add_data(data, key, value):
|
||||
data[key] = value
|
||||
data.setdefault(key, []).append(value)
|
||||
|
||||
rpm_out = [
|
||||
'protobuf-java_|-2.6.1_|-3.1.develHead_|-',
|
||||
@ -509,7 +509,7 @@ Repository 'DUMMY' not found by its alias, number, or URI.
|
||||
'apache-commons-cli': '1.2-1.233',
|
||||
'jose4j': '0.4.4-2.1.develHead'}.items():
|
||||
self.assertTrue(pkgs.get(pkg_name))
|
||||
self.assertEqual(pkgs[pkg_name], pkg_version)
|
||||
self.assertEqual(pkgs[pkg_name], [pkg_version])
|
||||
|
||||
def test_list_patches(self):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user