Skip to content

Commit a48072f

Browse files
committed
🔍 review code
1 parent 02d4401 commit a48072f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_figure_resampler.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import multiprocessing
88
import subprocess
99
import time
10+
from datetime import timedelta
1011
from typing import List
1112

1213
import numpy as np
@@ -15,7 +16,6 @@
1516
import pytest
1617
from plotly.subplots import make_subplots
1718
from selenium.webdriver.common.by import By
18-
from datetime import timedelta
1919

2020
from plotly_resampler import LTTB, EveryNthPoint, FigureResampler
2121
from plotly_resampler.aggregation import NoGapHandler, PlotlyAggregatorParser
@@ -633,7 +633,7 @@ def test_set_hfx_tz_aware_series():
633633

634634

635635
def test_tz_xaxis_range():
636-
# test related to the followign issue:
636+
# test related to issue 212 - github.com/predict-idlab/plotly-resampler/issues/212
637637
n = 50_000
638638
s = pd.Series(
639639
index=pd.date_range("2020-01-01", periods=n, freq="1min", tz="UTC"),
@@ -643,7 +643,7 @@ def test_tz_xaxis_range():
643643
fig = go.Figure(
644644
layout=go.Layout(
645645
title=dict(
646-
text=f"AirT test timeseries",
646+
text="AirT test timeseries",
647647
y=0.98,
648648
x=0.5,
649649
xanchor="center",
@@ -672,8 +672,8 @@ def test_tz_xaxis_range():
672672
# verify whether the update was performed correctly
673673
out = fr.construct_update_data({"xaxis.range[0]": start, "xaxis.range[1]": end})
674674
assert len(out) == 3
675-
assert len(out[1]['x']) == 2000
676-
assert len(out[2]['x']) == 2000
675+
assert len(out[1]["x"]) == 2000
676+
assert len(out[2]["x"]) == 2000
677677

678678

679679
def test_datetime_hf_x_no_index():

0 commit comments

Comments
 (0)