Skip to content

Commit

Permalink
Fix flaky organization model test
Browse files Browse the repository at this point in the history
Compare sets instead of list to avoid any issues around ordering.
  • Loading branch information
marcospri committed Jul 25, 2024
1 parent bf6d736 commit a1bc0a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/lms/models/organization_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a1bc0a1

Please sign in to comment.