Skip to content

Commit

Permalink
post review
Browse files Browse the repository at this point in the history
  • Loading branch information
Azaya89 committed Nov 25, 2024
1 parent e3f4815 commit 2bbf2eb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions hvplot/tests/testgeowithoutgv.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,10 @@ def test_plot_without_crs(self):
sdf = spd.GeoDataFrame({'geometry': spd.GeoSeries([square, square]), 'name': ['A', 'B']})
plot = sdf.hvplot.polygons(tiles=True)

if hasattr(sdf, 'crs'):
del sdf.crs

assert len(plot) == 2
assert is_geodataframe(sdf)
assert not hasattr(plot, 'crs')
assert not hasattr(sdf, 'crs')
assert isinstance(plot.get(0), hv.Tiles)
assert isinstance(plot.get(1), hv.Polygons)
bk_plot = bk_renderer.get_plot(plot)
assert bk_plot.projection == 'mercator'
assert bk_plot.projection == 'mercator' # projection enabled due to `tiles=True`

0 comments on commit 2bbf2eb

Please sign in to comment.