From a1bc0a168e1fe69b6ae117abc40b87dea86ec57d Mon Sep 17 00:00:00 2001 From: Marcos Prieto Date: Thu, 25 Jul 2024 14:14:58 +0200 Subject: [PATCH] Fix flaky organization model test Compare sets instead of list to avoid any issues around ordering. --- tests/unit/lms/models/organization_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/lms/models/organization_test.py b/tests/unit/lms/models/organization_test.py index 6656ffc8ec..453ca1bdff 100644 --- a/tests/unit/lms/models/organization_test.py +++ b/tests/unit/lms/models/organization_test.py @@ -19,7 +19,7 @@ def test_application_instance_relationship( ): db_session.flush() - assert organization.application_instances == application_instances + assert set(organization.application_instances) == set(application_instances) for application_instance in application_instances: assert application_instance.organization == organization