Skip to content

Commit

Permalink
Ensure consistent sorting of actual and expected data.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Nov 15, 2024
1 parent f81312e commit a57ca55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kolibri/core/content/test/test_content_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,8 @@ def test_contentnode_list_long(self):

def _recurse_and_assert(self, data, nodes, recursion_depth=0):
recursion_depths = []
data = sorted(data, key=lambda x: x["id"])
nodes = sorted(nodes, key=lambda x: x.id)
for actual, expected in zip(data, nodes):
children = actual.pop("children", None)
self._assert_node(actual, expected)
Expand Down

0 comments on commit a57ca55

Please sign in to comment.