Skip to content

Commit

Permalink
test: gee now raises TypeError when an invalid property is passed to …
Browse files Browse the repository at this point in the history
…the style
  • Loading branch information
dfguerrerom committed Aug 5, 2024
1 parent b569e92 commit f63b69a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_mapping/test_SepalMap.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import ee
import pytest
from ee.ee_exception import EEException
from ipyleaflet import GeoJSON

from sepal_ui import mapping as sm
Expand Down Expand Up @@ -191,7 +190,7 @@ def test_add_ee_layer_exceptions() -> None:
)
)

with pytest.raises(EEException):
with pytest.raises(TypeError):
map_.addLayer(geometry, {"invalid_propery": "red", "fillColor": None})

return
Expand Down

0 comments on commit f63b69a

Please sign in to comment.