From 45392543a905f329fe63f550133af8e6063e6570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Sl=C3=A1vik?= Date: Mon, 10 Jul 2023 13:10:44 +0200 Subject: [PATCH] Use correct call assert method in flapak test --- .../modules/payloads/payload/test_flatpak_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit_tests/pyanaconda_tests/modules/payloads/payload/test_flatpak_manager.py b/tests/unit_tests/pyanaconda_tests/modules/payloads/payload/test_flatpak_manager.py index 5b5955b4719..a9be7917a46 100644 --- a/tests/unit_tests/pyanaconda_tests/modules/payloads/payload/test_flatpak_manager.py +++ b/tests/unit_tests/pyanaconda_tests/modules/payloads/payload/test_flatpak_manager.py @@ -349,12 +349,12 @@ def test_replace_remote(self, remote_cls, installation_cls, transaction_cls, flatpak.replace_installed_refs_remote("cylon_officer") # test that every file is read and written - open_mock.has_calls([ + open_mock.assert_has_calls([ call("/path/app/org.test/x86_64/stable/active/deploy", "rb"), call("/path/app/org.test/x86_64/stable/active/deploy", "wb"), call("/path/runtime/org.run/x86_64/stable/active/deploy", "rb"), call("/path/runtime/org.run/x86_64/stable/active/deploy", "wb"), - ]) + ], any_order=True) class OperationMock(object):