Skip to content

Commit

Permalink
Merge pull request #515 from l0b0/refactor/simplify-assertion
Browse files Browse the repository at this point in the history
refactor: Simplify assertion
  • Loading branch information
lossyrob authored Jul 7, 2021
2 parents a4fe4cd + 9b040f1 commit 0d3035c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ def test_null_geometry(self) -> None:

item_dict = item.to_dict()
self.assertIsNone(item_dict["geometry"])
with self.assertRaises(KeyError):
item_dict["bbox"]
self.assertNotIn("bbox", item_dict)

def test_0_9_item_with_no_extensions_does_not_read_collection_data(self) -> None:
item_json = pystac.StacIO.default().read_json(
Expand Down

0 comments on commit 0d3035c

Please sign in to comment.