Skip to content

Commit

Permalink
Avoid random test failures due to order of items in lists
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyscientist committed Nov 27, 2023
1 parent 6fd57ea commit 271007a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/tests/test_crud_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def asserts_after_entities_update(self, db: Session, born_time: datetime):
assert e.get('age', db).value == 10
assert e.get('born', db).value.astimezone(timezone.utc) == born_time.astimezone(
timezone.utc)
assert [i.value for i in e.get('friends', db)] == self._default_friends(db)
assert {i.value for i in e.get('friends', db)} == set(self._default_friends(db))
assert e.get('nickname', db) is None
nicknames = db.execute(
select(ValueStr)
Expand Down

0 comments on commit 271007a

Please sign in to comment.