commit:     54590b592f4bbb65d66445214be2a6a9351ee112
Author:     David Palao <david.palao <AT> gmail <DOT> com>
AuthorDate: Fri Sep 16 19:46:34 2022 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Sep 25 19:10:55 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=54590b59

test(actions): fixed little issue in UT

Signed-off-by: David Palao <david.palao <AT> gmail.com>
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 lib/portage/tests/emerge/test_actions.py | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/lib/portage/tests/emerge/test_actions.py 
b/lib/portage/tests/emerge/test_actions.py
index ee59cef5e..d93e44bad 100644
--- a/lib/portage/tests/emerge/test_actions.py
+++ b/lib/portage/tests/emerge/test_actions.py
@@ -22,14 +22,11 @@ class RunActionTestCase(TestCase):
     If the implementation changes, the mocks can be adjusted to play its
     role.
     """
+
     @patch("_emerge.actions.profile_check")
     @patch("_emerge.actions.adjust_configs")
     @patch("_emerge.actions.apply_priorities")
-    def test_binary_trees_populate_called(
-            self,
-            papply,
-            padjust,
-            profile_ckeck):
+    def test_binary_trees_populate_called(self, papply, padjust, 
profile_ckeck):
         """Ensure that ``binarytree.populate`` API is correctly used.
         The point of this test is to ensure that the ``populate`` method
         is called as expected: since it is the first time that ``populate``
@@ -37,7 +34,7 @@ class RunActionTestCase(TestCase):
         """
         config = MagicMock()
         config.action = None
-        config.opts = {"--quiet": True, "--usepkg": True}
+        config.opts = {"--quiet": True, "--usepkg": True, "--package-moves": 
"n"}
         bt = MagicMock()
         tree = {"bintree": bt}
         trees = {"first": tree}
@@ -45,6 +42,4 @@ class RunActionTestCase(TestCase):
 
         run_action(config)
 
-        bt.populate.assert_called_once_with(
-            getbinpkgs=False, getbinpkg_refresh=True
-        )
+        bt.populate.assert_called_once_with(getbinpkgs=False, 
getbinpkg_refresh=True)

Reply via email to