alessandro trinca tornidor
commited on
Commit
·
c52fce3
1
Parent(s):
8735634
test: fix test case condition about the number of shapely geometries created from the samgis post
Browse files- tests/test_app.py +1 -1
tests/test_app.py
CHANGED
|
@@ -133,7 +133,7 @@ class TestFastapiApp(unittest.TestCase):
|
|
| 133 |
output_geojson = shapely.from_geojson(geojson)
|
| 134 |
print("output_geojson::{}.".format(output_geojson))
|
| 135 |
assert isinstance(output_geojson, shapely.GeometryCollection)
|
| 136 |
-
assert len(output_geojson.geoms)
|
| 137 |
|
| 138 |
@patch.object(time, "time")
|
| 139 |
@patch.object(app, "samexporter_predict")
|
|
|
|
| 133 |
output_geojson = shapely.from_geojson(geojson)
|
| 134 |
print("output_geojson::{}.".format(output_geojson))
|
| 135 |
assert isinstance(output_geojson, shapely.GeometryCollection)
|
| 136 |
+
assert len(output_geojson.geoms) > 1
|
| 137 |
|
| 138 |
@patch.object(time, "time")
|
| 139 |
@patch.object(app, "samexporter_predict")
|