Skip to content

Commit

Permalink
Remove sampledata from UI test
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed May 17, 2024
1 parent 850c521 commit 945e179
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions holoviews/tests/ui/bokeh/test_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import numpy as np
import pandas as pd
import pytest
from bokeh.sampledata.stocks import AAPL

import holoviews as hv
from holoviews.plotting.links import RangeToolLink
Expand All @@ -17,21 +16,26 @@
@pytest.mark.parametrize(
["index", "intervalsx", "x_range_src", "x_range_tgt"],
[
(range(len(AAPL["date"])), (100, 365), (0, 365), (0, 3269)),
(
pd.to_datetime(AAPL["date"]),
range(3000),
(100, 365),
(0, 365),
(0, 3000 - 1),
),
(
pd.date_range("2000-03-01", periods=3000),
(timedelta(days=100), timedelta(days=365)),
(
np.array(["2000-03-01"], dtype="datetime64[ns]")[0],
pd.Timestamp("2001-03-01"),
),
np.array(["2000-03-01", "2013-03-01"], dtype="datetime64[ns]"),
np.array(["2000-03-01", "2008-05-17"], dtype="datetime64[ns]"),
),
],
ids=["int", "datetime"],
)
def test_rangetool_link_interval(serve_hv, index, intervalsx, x_range_src, x_range_tgt):
df = pd.DataFrame(AAPL["close"], columns=["close"], index=index)
df = pd.DataFrame(range(3000), columns=["close"], index=index)
df.index.name = "Date"

aapl_curve = hv.Curve(df, "Date", ("close", "Price ($)"))
Expand Down

0 comments on commit 945e179

Please sign in to comment.