diff --git a/src/signalo/core/tests.py b/src/signalo/core/tests.py index c094198b..28ead615 100644 --- a/src/signalo/core/tests.py +++ b/src/signalo/core/tests.py @@ -4,6 +4,7 @@ import os import pstats from itertools import islice +from operator import itemgetter from typing import Callable, Iterable, Tuple import fiona @@ -227,8 +228,12 @@ def test_flatgeobuf(self): set(json_coordinates), msg="The two sources map to the same set of coordinates.", ) + + fgb_coordinates.sort(key=itemgetter(0, 1)) + json_coordinates.sort(key=itemgetter(0, 1)) + self.assertEqual( fgb_coordinates, json_coordinates, - msg="The two sources map to the same list of coordinates.", + msg="Once sorted, the two sources map to the same list of coordinates.", )