Skip to content

Commit 6acd25a

Browse files
committed
Move plotly_utils tests into root tests directory
1 parent f3db071 commit 6acd25a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+45
-45
lines changed

tests/test_core/test_graph_objs/test_append_trace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
XAxis,
1111
YAxis,
1212
)
13-
from plotly.tests.utils import strip_dict_params
13+
from ...utils import strip_dict_params
1414

1515
import plotly.tools as tls
1616

tests/test_core/test_graph_objs/test_figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import plotly.graph_objects as go
22
from plotly.subplots import make_subplots
3-
from plotly.tests.utils import TestCaseNoTemplate
3+
from ...utils import TestCaseNoTemplate
44
import pytest
55

66

tests/test_core/test_graph_objs/test_property_assignment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from unittest import TestCase
22
import plotly.graph_objs as go
33

4-
from plotly.tests.utils import strip_dict_params
4+
from ...utils import strip_dict_params
55

66

77
class TestAssignmentPrimitive(TestCase):

tests/test_core/test_graph_objs/test_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import plotly.io as pio
66
import plotly.graph_objs as go
7-
from plotly.tests.utils import TestCaseNoTemplate
7+
from ...utils import TestCaseNoTemplate
88

99

1010
class TemplateTest(TestCase):

tests/test_core/test_graph_objs/test_to_ordered_dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import plotly.graph_objs as go
22
from collections import OrderedDict
3-
from plotly.tests.utils import TestCaseNoTemplate
3+
from ...utils import TestCaseNoTemplate
44

55

66
class FigureTest(TestCaseNoTemplate):

tests/test_core/test_graph_objs/test_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import plotly.graph_objs as go
44
from plotly.graph_objs import Data, Figure, Layout, Line, Scatter, scatter, XAxis
5-
from plotly.tests.utils import strip_dict_params
5+
from ...utils import strip_dict_params
66

77
from unittest import TestCase
88

tests/test_core/test_optional_imports/test_optional_imports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_get_module_does_not_exist(self):
2424

2525
def test_get_module_import_exception(self):
2626
# Get module that raises an exception on import
27-
module_str = "plotly.tests.test_core." "test_optional_imports.exploding_module"
27+
module_str = ".." "test_optional_imports.exploding_module"
2828

2929
if sys.version_info >= (3, 4):
3030
with self.assertLogs("_plotly_utils.optional_imports", level="ERROR") as cm:

tests/test_optional/optional_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import numpy as np
22

33
from plotly import optional_imports
4-
from plotly.tests.utils import is_num_list
4+
from ..utils import is_num_list
55
from plotly.utils import get_by_path, node_generator
66

77
import copy

tests/test_optional/test_figure_factory/test_figure_factory.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
import plotly.io as pio
66

77
import plotly.figure_factory as ff
8-
from plotly.tests.test_optional.optional_utils import NumpyTestUtilsMixin
9-
from plotly.tests.test_optional.test_utils.test_utils import np_nan, np_inf
8+
from ...test_optional.optional_utils import NumpyTestUtilsMixin
9+
from ...test_optional.test_utils.test_utils import np_nan, np_inf
1010

1111
import numpy as np
12-
from plotly.tests.utils import TestCaseNoTemplate
12+
from ...utils import TestCaseNoTemplate
1313
from scipy.spatial import Delaunay
1414
import pandas as pd
1515

tests/test_optional/test_graph_objs/test_skipped_b64_keys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import json
22
from unittest import TestCase
33
import numpy as np
4-
from plotly.tests.test_optional.optional_utils import NumpyTestUtilsMixin
4+
from ...test_optional.optional_utils import NumpyTestUtilsMixin
55
import plotly.graph_objs as go
66

77

0 commit comments

Comments
 (0)