From e336cac88b88743fd50f8d8b268952ca5488cbc8 Mon Sep 17 00:00:00 2001 From: awarde96 Date: Wed, 28 Aug 2024 12:11:46 +0000 Subject: [PATCH] Update tests --- tests/test_encoder_bounding_box.py | 2 +- tests/test_encoder_frame.py | 2 +- tests/test_encoder_path.py | 2 +- tests/test_encoder_shapefile.py | 2 +- tests/test_encoder_time_series.py | 2 +- tests/test_encoder_wkt.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_encoder_bounding_box.py b/tests/test_encoder_bounding_box.py index 43c3100..e3c8f50 100644 --- a/tests/test_encoder_bounding_box.py +++ b/tests/test_encoder_bounding_box.py @@ -139,7 +139,7 @@ def setup_method(self, method): def test_CoverageCollection(self): encoder_obj = Covjsonkit().encode("CoverageCollection", "BoundingBox") - assert encoder_obj.type == "CoverageCollection" + assert encoder_obj.covjson["type"] == "CoverageCollection" def test_standard_Coverage(self): encoder_obj = Covjsonkit().encode("CoverageCollection", "BoundingBox") diff --git a/tests/test_encoder_frame.py b/tests/test_encoder_frame.py index 9a2b1ed..7f027ae 100644 --- a/tests/test_encoder_frame.py +++ b/tests/test_encoder_frame.py @@ -139,7 +139,7 @@ def setup_method(self, method): def test_CoverageCollection(self): encoder_obj = Covjsonkit().encode("CoverageCollection", "Frame") - assert encoder_obj.type == "CoverageCollection" + assert encoder_obj.covjson["type"] == "CoverageCollection" def test_standard_Coverage(self): encoder_obj = Covjsonkit().encode("CoverageCollection", "Frame") diff --git a/tests/test_encoder_path.py b/tests/test_encoder_path.py index f75f853..401496f 100644 --- a/tests/test_encoder_path.py +++ b/tests/test_encoder_path.py @@ -142,7 +142,7 @@ def setup_method(self, method): @pytest.mark.skip(reason="Trajecotry not implemented in covjson-pydantic yet") def test_CoverageCollection(self): encoder_obj = Covjsonkit().encode("CoverageCollection", "Path") - assert encoder_obj.type == "CoverageCollection" + assert encoder_obj.covjson["type"] == "CoverageCollection" @pytest.mark.skip(reason="Trajecotry not implemented in covjson-pydantic yet") def test_standard_Coverage(self): diff --git a/tests/test_encoder_shapefile.py b/tests/test_encoder_shapefile.py index d7e575c..7b95b87 100644 --- a/tests/test_encoder_shapefile.py +++ b/tests/test_encoder_shapefile.py @@ -139,7 +139,7 @@ def setup_method(self, method): def test_CoverageCollection(self): encoder_obj = Covjsonkit().encode("CoverageCollection", "shapefile") - assert encoder_obj.type == "CoverageCollection" + assert encoder_obj.covjson["type"] == "CoverageCollection" def test_standard_Coverage(self): encoder_obj = Covjsonkit().encode("CoverageCollection", "shapefile") diff --git a/tests/test_encoder_time_series.py b/tests/test_encoder_time_series.py index 1b0c50b..5ade042 100644 --- a/tests/test_encoder_time_series.py +++ b/tests/test_encoder_time_series.py @@ -150,7 +150,7 @@ def setup_method(self, method): def test_CoverageCollection(self): encoder_obj = Covjsonkit().encode("CoverageCollection", "PointSeries") - assert encoder_obj.type == "CoverageCollection" + assert encoder_obj.covjson["type"] == "CoverageCollection" def test_standard_Coverage(self): encoder_obj = Covjsonkit().encode("CoverageCollection", "PointSeries") diff --git a/tests/test_encoder_wkt.py b/tests/test_encoder_wkt.py index 6fafd26..c447ffd 100644 --- a/tests/test_encoder_wkt.py +++ b/tests/test_encoder_wkt.py @@ -139,7 +139,7 @@ def setup_method(self, method): def test_CoverageCollection(self): encoder_obj = Covjsonkit().encode("CoverageCollection", "wkt") - assert encoder_obj.type == "CoverageCollection" + assert encoder_obj.covjson["type"] == "CoverageCollection" def test_standard_Coverage(self): encoder_obj = Covjsonkit().encode("CoverageCollection", "wkt")