Skip to content

Commit

Permalink
tests: raise NotImplementedError for custom ext
Browse files Browse the repository at this point in the history
mypy flagged the super call as a problem b/c it just raised a
NotImplementedError. I think I agree -- it's better to be explicit that our test
case shouldn't call the schema uri.
  • Loading branch information
gadomski committed Dec 30, 2022
1 parent 90cbddd commit e77cd0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/extensions/test_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def add_link(self, target: pystac.STACObject) -> None:

@classmethod
def get_schema_uri(cls) -> str:
return super().get_schema_uri()
raise NotImplementedError

@staticmethod
def custom_ext(obj: T) -> "CustomExtension[T]":
Expand Down

0 comments on commit e77cd0a

Please sign in to comment.