Skip to content

Commit 36e8e52

Browse files
committed
Merge pull request #93 from plotly/circle-update
Circle update
2 parents e467a56 + e7c34b3 commit 36e8e52

File tree

11 files changed

+27
-22
lines changed

11 files changed

+27
-22
lines changed

circle.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,18 @@ checkout:
99
## Customize dependencies
1010
dependencies:
1111
post:
12-
- pip install matplotlib
1312
- pip install -I .
1413
- cd ~ && python -c "import plotly"
14+
- pip install matplotlib
1515

1616
## Customize database setup (pass)
1717

1818
## Customize test commands
1919
test:
2020
post:
21-
- nosetests -w plotly/tests
21+
- nosetests -w plotly/tests/test_optional
22+
- pip uninstall -y matplotlib
23+
- nosetests -w plotly/tests/test_core
2224
- chmod 000 ~/.plotly && python -c "import plotly"
2325

2426
## Customize deployment commands (pass)

plotly/tests/test_core/test_graph_objs/test_strip_style.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import absolute_import
22

33
from plotly.graph_objs import *
4-
from . import nose_tools
4+
from plotly.tests.utils import compare_dict
55

66

77
def test_strip_style():
@@ -145,6 +145,6 @@ def test_strip_style():
145145
margin=Margin()
146146
)
147147
)
148-
equivalent, msg = nose_tools.compare_dict(fig, comp_fig)
148+
equivalent, msg = compare_dict(fig, comp_fig)
149149
print(msg)
150150
assert equivalent
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from __future__ import absolute_import
2+
3+
import matplotlib
4+
# Force matplotlib to not use any Xwindows backend.
5+
matplotlib.use('Agg')
6+
from plotly.matplotlylib import Exporter, PlotlyRenderer
7+
from plotly.tests.utils import *
8+
9+
10+
def run_fig(fig):
11+
renderer = PlotlyRenderer()
12+
exporter = Exporter(renderer)
13+
exporter.run(fig)
14+
return renderer

plotly/tests/test_optional/test_matplotlylib/test_annotations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
matplotlib.use('Agg')
66
import matplotlib.pyplot as plt
77

8-
from .nose_tools import compare_dict, run_fig
8+
from plotly.tests.test_optional.optional_utils import compare_dict, run_fig
99
from .data.annotations import *
1010

1111

plotly/tests/test_optional/test_matplotlylib/test_axis_scales.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
matplotlib.use('Agg')
44
import matplotlib.pyplot as plt
55

6-
from .nose_tools import compare_dict, run_fig
6+
from plotly.tests.test_optional.optional_utils import compare_dict, run_fig
77
from .data.axis_scales import *
88

99

plotly/tests/test_optional/test_matplotlylib/test_bars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
matplotlib.use('Agg')
44
import matplotlib.pyplot as plt
55

6-
from .nose_tools import compare_dict, run_fig
6+
from plotly.tests.test_optional.optional_utils import compare_dict, run_fig
77
from .data.bars import *
88

99

plotly/tests/test_optional/test_matplotlylib/test_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
matplotlib.use('Agg')
44
import matplotlib.pyplot as plt
55

6-
from .nose_tools import run_fig
6+
from plotly.tests.test_optional.optional_utils import run_fig
77
from .data.data import *
88

99

plotly/tests/test_optional/test_matplotlylib/test_lines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
matplotlib.use('Agg')
44
import matplotlib.pyplot as plt
55

6-
from .nose_tools import compare_dict, run_fig
6+
from plotly.tests.test_optional.optional_utils import compare_dict, run_fig
77
from .data.lines import *
88

99

plotly/tests/test_optional/test_matplotlylib/test_scatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
matplotlib.use('Agg')
44
import matplotlib.pyplot as plt
55

6-
from .nose_tools import compare_dict, run_fig
6+
from plotly.tests.test_optional.optional_utils import compare_dict, run_fig
77
from .data.scatter import *
88

99

plotly/tests/test_optional/test_matplotlylib/test_subplots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import matplotlib.pyplot as plt
55
from matplotlib.gridspec import GridSpec
66

7-
from .nose_tools import compare_dict, run_fig
7+
from plotly.tests.test_optional.optional_utils import compare_dict, run_fig
88
from .data.subplots import *
99

1010

0 commit comments

Comments
 (0)