Skip to content

Commit

Permalink
Merge f23e693 into 00e1ceb
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt committed Sep 10, 2021
2 parents 00e1ceb + f23e693 commit b6dfda3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hvplot/tests/testgeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ def test_plot_with_crs_as_attr_str(self):
self.assertCRS(plot)

def test_plot_with_crs_as_nonexistent_attr_str(self):
with self.assertRaisesRegex(ValueError, "'foo' must be"):
self.da.hvplot.image('x', 'y', crs='foo')
# Used to test crs='foo' but this is parsed under-the-hood
# by PROJ (projinfo) which matches a geographic projection named
# 'Amersfoort'
with self.assertRaisesRegex(ValueError, "'name_of_some_invalid_projection' must be"):
self.da.hvplot.image('x', 'y', crs='wrong')

def test_plot_with_geo_as_true_crs_no_crs_on_data_returns_default(self):
da = self.da.copy()
Expand Down

0 comments on commit b6dfda3

Please sign in to comment.