Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 committed Sep 18, 2023
1 parent 6a05679 commit f1e1906
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hvplot/tests/testcharts.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from unittest import SkipTest, expectedFailure
from parameterized import parameterized

from holoviews.core.dimension import Dimension
from holoviews import NdOverlay, Store, dim, render
from holoviews.element import Curve, Area, Scatter, Points, Path, HeatMap
from holoviews.element.comparison import ComparisonTestCase
Expand Down Expand Up @@ -349,9 +350,8 @@ def test_errorbars_no_hover(self):

def test_labels_format(self):
plot = self.df.hvplot("x", "y", text="({x}, {y})", kind="labels")
print(plot)
# assert list(plot.dimensions()) == ['x', 'y', 'labels']
# assert plot.data['labels'].tolist() == ['(1, 2)', '(3, 4)', '(5, 6)']
assert list(plot.dimensions()) == [Dimension('x'), Dimension('y'), Dimension('label')]
assert list(plot.data["label"]) == ['(1, 2)', '(3, 4)', '(5, 6)']

class TestChart1DDask(TestChart1D):

Expand Down

0 comments on commit f1e1906

Please sign in to comment.