65598582f5
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:saltstack/salt?expand=0&rev=179
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
From ac6a77b6c617e28a092398a16dd550d5ef70d7ea Mon Sep 17 00:00:00 2001
|
|
From: Jochen Breuer <jbreuer@suse.de>
|
|
Date: Wed, 25 Mar 2020 15:18:51 +0100
|
|
Subject: [PATCH] Reintroducing reverted changes
|
|
|
|
Reintroducing changes from commit e20362f6f053eaa4144583604e6aac3d62838419
|
|
that got partially reverted by this commit:
|
|
https://github.com/openSUSE/salt/commit/d0ef24d113bdaaa29f180031b5da384cffe08c64#diff-820e6ce667fe3afddbc1b9cf1682fdef
|
|
---
|
|
tests/unit/modules/test_aptpkg.py | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/unit/modules/test_aptpkg.py b/tests/unit/modules/test_aptpkg.py
|
|
index 77d8b84896..3c9744e224 100644
|
|
--- a/tests/unit/modules/test_aptpkg.py
|
|
+++ b/tests/unit/modules/test_aptpkg.py
|
|
@@ -293,7 +293,9 @@ class AptPkgTestCase(TestCase, LoaderModuleMockMixin):
|
|
if installed["wget"].get(names[name], False):
|
|
installed["wget"][name] = installed["wget"].pop(names[name])
|
|
|
|
- assert aptpkg.info_installed("wget") == installed
|
|
+ del installed["wget"]["status"]
|
|
+ self.assertEqual(aptpkg.info_installed("wget"), installed)
|
|
+ self.assertEqual(len(aptpkg.info_installed()), 1)
|
|
|
|
@patch(
|
|
"salt.modules.aptpkg.__salt__",
|
|
--
|
|
2.29.2
|
|
|
|
|