Skip to content

Commit

Permalink
Add version check for test (#1144)
Browse files Browse the repository at this point in the history
* Add version check for test

* commit
  • Loading branch information
ahuang11 committed Sep 27, 2023
1 parent ba9eb92 commit 98c2612
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hvplot/tests/testoperations.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from parameterized import parameterized

import colorcet as cc
import holoviews as hv
import hvplot.pandas # noqa
import numpy as np
import pandas as pd
Expand All @@ -12,6 +13,7 @@
from holoviews.element import Image, QuadMesh, ImageStack
from holoviews.element.comparison import ComparisonTestCase
from hvplot.converter import HoloViewsConverter
from packaging.version import Version


class TestDatashader(ComparisonTestCase):
Expand Down Expand Up @@ -196,6 +198,8 @@ def test_datashade_rescale_discrete_levels_default_True(self):
assert actual is expected

def test_rasterize_by(self):
if Version(hv.__version__) < Version('1.18.0a1'):
raise SkipTest('hv.ImageStack introduced after 1.18.0a1')
expected = 'category'
plot = self.df.hvplot(x='x', y='y', by=expected, rasterize=True, dynamic=False)
assert isinstance(plot, ImageStack)
Expand Down

0 comments on commit 98c2612

Please sign in to comment.