Skip to content

Commit

Permalink
Add test for Dimension.type handling
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jul 29, 2019
1 parent 39f6d86 commit c8a7e75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions holoviews/tests/plotting/bokeh/testelementplot.py
Expand Up @@ -384,6 +384,12 @@ def test_categorical_dimension_values(self):
x_range = plot.handles['x_range']
self.assertEqual(x_range.factors, ['A', 'B', 'C'])

def test_categorical_dimension_type(self):
curve = Curve([]).redim.type(x=str)
plot = bokeh_renderer.get_plot(curve)
x_range = plot.handles['x_range']
self.assertEqual(x_range.factors, [])

#################################################################
# Aspect tests
#################################################################
Expand Down

0 comments on commit c8a7e75

Please sign in to comment.