Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Oct 3, 2024
1 parent 074ff87 commit 2223d05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_cmap_json():
"bad": pathlib.Path(PREFIX) / "bad.json",
}
)
assert len(new_cmap.list()) == colormap_number + 2
assert len(new_cmap.list()) == colormap_number + 3
nlcd = new_cmap.get("nlcd")
assert isinstance(nlcd, dict)
assert nlcd[11] == (72, 109, 162, 255)
Expand All @@ -88,7 +88,7 @@ def test_cmap_json():
assert seq[0][0] == (1, 2)
assert seq[0][1] == (255, 0, 0, 255)

with pytest.raises(json.JSONDecodeError):
with pytest.raises((json.JSONDecodeError, ValueError)):
new_cmap.get("bad")


Expand Down

0 comments on commit 2223d05

Please sign in to comment.