Skip to content

Commit

Permalink
Fix test which wasn't updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
eseglem committed Jul 21, 2023
1 parent 7c96ce2 commit c6712a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_exclude_if_none_subclass() -> None:
# Create a subclass that adds a field, and ensure it works.
class TestClass(_GeoJsonBase):
test_field: str = None
__exclude_if_none__: Set[str] = {"bbox", "test_field"}
__geojson_exclude_if_none__: Set[str] = {"bbox", "test_field"}

assert TestClass().model_dump_json() == "{}"
assert TestClass(test_field="a").model_dump_json() == '{"test_field":"a"}'
Expand Down

0 comments on commit c6712a2

Please sign in to comment.