7
7
import multiprocessing
8
8
import subprocess
9
9
import time
10
+ from datetime import timedelta
10
11
from typing import List
11
12
12
13
import numpy as np
15
16
import pytest
16
17
from plotly .subplots import make_subplots
17
18
from selenium .webdriver .common .by import By
18
- from datetime import timedelta
19
19
20
20
from plotly_resampler import LTTB , EveryNthPoint , FigureResampler
21
21
from plotly_resampler .aggregation import NoGapHandler , PlotlyAggregatorParser
@@ -633,7 +633,7 @@ def test_set_hfx_tz_aware_series():
633
633
634
634
635
635
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
637
637
n = 50_000
638
638
s = pd .Series (
639
639
index = pd .date_range ("2020-01-01" , periods = n , freq = "1min" , tz = "UTC" ),
@@ -643,7 +643,7 @@ def test_tz_xaxis_range():
643
643
fig = go .Figure (
644
644
layout = go .Layout (
645
645
title = dict (
646
- text = f "AirT test timeseries" ,
646
+ text = "AirT test timeseries" ,
647
647
y = 0.98 ,
648
648
x = 0.5 ,
649
649
xanchor = "center" ,
@@ -672,8 +672,8 @@ def test_tz_xaxis_range():
672
672
# verify whether the update was performed correctly
673
673
out = fr .construct_update_data ({"xaxis.range[0]" : start , "xaxis.range[1]" : end })
674
674
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
677
677
678
678
679
679
def test_datetime_hf_x_no_index ():
0 commit comments