From ca07e2fb58f91af1983aee285bd960ffcdcd24d7 Mon Sep 17 00:00:00 2001 From: why-not-try-calmer Date: Sat, 12 Aug 2023 13:06:55 +0200 Subject: [PATCH] sorted test --- src/signalo/core/tests.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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.", )