Skip to content

Commit 62ef479

Browse files
committed
Simplify geojson test
1 parent ae33f06 commit 62ef479

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

test/integration/test_classification_labels.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,4 @@ def test_cli(self):
6363
expected_geojson = json.load(fixture)
6464
geojson = json.load(geojson_file)
6565

66-
for feature in geojson['features']:
67-
self.assertTrue(feature in expected_geojson['features'])
66+
self.assertCountEqual(expected_geojson, geojson)

test/integration/test_classification_labels_geojson.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,4 @@ def test_cli(self):
6363
expected_geojson = json.load(fixture)
6464
geojson = json.load(geojson_file)
6565

66-
for feature in geojson['features']:
67-
self.assertTrue(feature in expected_geojson['features'])
66+
self.assertCountEqual(expected_geojson, geojson)

test/integration/test_classification_labels_sparse.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,4 @@ def test_cli(self):
6363
expected_geojson = json.load(fixture)
6464
geojson = json.load(geojson_file)
6565

66-
for feature in geojson['features']:
67-
self.assertTrue(feature in expected_geojson['features'])
66+
self.assertCountEqual(expected_geojson, geojson)

test/integration/test_directory_move.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,4 @@ def test_cli(self):
5858
expected_geojson = json.load(fixture)
5959
geojson = json.load(geojson_file)
6060

61-
for feature in geojson['features']:
62-
self.assertTrue(feature in expected_geojson['features'])
61+
self.assertCountEqual(expected_geojson, geojson)

0 commit comments

Comments
 (0)