Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
awarde96 committed Sep 18, 2024
1 parent 17476ba commit e951f62
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_encoder_wkt.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ def setup_method(self, method):
}

def test_CoverageCollection(self):
encoder_obj = Covjsonkit().encode("CoverageCollection", "wkt")
encoder_obj = Covjsonkit().encode("CoverageCollection", "polygon")
assert encoder_obj.covjson["type"] == "CoverageCollection"

def test_standard_Coverage(self):
encoder_obj = Covjsonkit().encode("CoverageCollection", "wkt")
encoder_obj = Covjsonkit().encode("CoverageCollection", "polygon")
# covjson = CoverageCollection(
# type="CoverageCollection", coverages=[], domainType=DomainType.multi_point, parameters={}, referencing=[]
# )
Expand All @@ -151,15 +151,15 @@ def test_standard_Coverage(self):
assert encoder_obj.covjson == covjson

def test_add_parameter(self):
encoder_obj = Covjsonkit().encode("CoverageCollection", "wkt")
encoder_obj = Covjsonkit().encode("CoverageCollection", "polygon")
encoder_obj.add_parameter(167)
encoder_obj.add_parameter(166)

json_string = encoder_obj.pydantic_coverage.model_dump_json(exclude_none=True, indent=4)
assert CoverageCollection.model_validate_json(json_string)

def test_add_reference(self):
encoder_obj = Covjsonkit().encode("CoverageCollection", "wkt")
encoder_obj = Covjsonkit().encode("CoverageCollection", "polygon")
encoder_obj.add_reference(
{
"coordinates": ["x", "y", "z"],
Expand All @@ -175,7 +175,7 @@ def test_add_reference(self):
assert CoverageCollection.model_validate_json(json_string)

def test_add_coverage(self):
encoder = Covjsonkit().encode("CoverageCollection", "wkt")
encoder = Covjsonkit().encode("CoverageCollection", "polygon")
encoder.add_parameter(167)
encoder.add_reference(
{
Expand Down

0 comments on commit e951f62

Please sign in to comment.