Skip to content

Commit

Permalink
sorted test
Browse files Browse the repository at this point in the history
  • Loading branch information
why-not-try-calmer committed Aug 12, 2023
1 parent 6bd3e2b commit ca07e2f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/signalo/core/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import os
import pstats
from itertools import islice
from operator import itemgetter
from typing import Callable, Iterable, Tuple

import fiona
Expand Down Expand Up @@ -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.",
)

0 comments on commit ca07e2f

Please sign in to comment.