Skip to content

Commit dec950d

Browse files
committed
add tests
1 parent badc8e8 commit dec950d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

holoviews/tests/operation/test_operation.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,17 @@ def test_decimate_same_y(self):
997997
pd.testing.assert_series_equal(data["x"], output["x"])
998998
pd.testing.assert_series_equal(data["y"], output["y"])
999999

1000+
@pytest.mark.parametrize("steps", ["steps-post", "steps-pre", "linear", "steps-mid"])
1001+
def test_empty_curve_interpolation(self, steps):
1002+
empty_curve = hv.Curve(([], []), "x", "y").opts(interpolation=steps)
1003+
hv.renderer("bokeh").get_plot(empty_curve)
1004+
1005+
x_values = empty_curve.data[("x")]
1006+
y_values = empty_curve.data[("y")]
1007+
1008+
assert len(x_values) == 0
1009+
assert len(y_values) == 0
1010+
10001011

10011012
class TestCategoricalAgg:
10021013
def test_categorical_agg_count(self):

0 commit comments

Comments
 (0)