Skip to content

Commit 9c64f2d

Browse files
committed
Remove plotly.tests import in chart_studio tests
1 parent a445a6f commit 9c64f2d

File tree

1 file changed

+7
-3
lines changed
  • chart-studio-package/chart_studio/tests/test_optional/test_utils

1 file changed

+7
-3
lines changed

chart-studio-package/chart_studio/tests/test_optional/test_utils/test_utils.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33

44
import _plotly_utils.utils
55
from chart_studio.grid_objs import Column
6-
from plotly import utils
7-
from plotly.tests.test_optional.test_utils.test_utils import numeric_list, \
8-
mixed_list, np_list
6+
from datetime import datetime as dt
7+
import numpy as np
8+
9+
np_list = np.array([1, 2, 3, np.NaN, np.NAN, np.Inf, dt(2014, 1, 5)])
10+
numeric_list = [1, 2, 3]
11+
mixed_list = [1, 'A', dt(2014, 1, 5), dt(2014, 1, 5, 1, 1, 1),
12+
dt(2014, 1, 5, 1, 1, 1, 1)]
913

1014

1115
class TestJSONEncoder(TestCase):

0 commit comments

Comments
 (0)