Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add version check for test #1144

Merged
merged 2 commits into from
Sep 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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