Skip to content

Commit 3c38233

Browse files
author
Tahira Ullah
committed
test function improved
1 parent ccf8932 commit 3c38233

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

mapswipe_workers/mapswipe_workers/utils/tile_grouping_functions.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,6 @@ def extent_to_groups(infile, zoom, groupSize):
400400
# TODO: add this line once properly working
401401
groups_dict, overlaps_total = adjust_overlapping_groups(raw_groups_dict, zoom)
402402

403-
if overlaps_total == 0:
404-
groups_dict = groups_dict
405-
406403
return groups_dict
407404

408405

mapswipe_workers/tests/unittests/test_groups_overlap.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ def test_project_geometries_intersection(self):
1414
)
1515

1616
groups_with_overlaps = t.extent_to_groups(project_extent_file, zoom, 100)
17-
t.vertical_groups_as_geojson(
18-
groups_with_overlaps, "groups_with_overlaps.geojson"
19-
)
17+
self.assertEqual(len(groups_with_overlaps), 117)
2018

2119

2220
if __name__ == "__main__":

0 commit comments

Comments
 (0)