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):