Skip to content

Commit cbb2ee2

Browse files
committedJan 24, 2015
Merge pull request #180 from plotly/test-import-widgets
Test import widgets
2 parents f3eb3ef + cc9333d commit cbb2ee2

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed
 
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from unittest import TestCase
2+
3+
from plotly.widgets import GraphWidget
4+
5+
6+
class TestWidgets(TestCase):
7+
8+
def test_instantiate_graph_widget(self):
9+
widget = GraphWidget

Diff for: ‎plotly/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.6.3'
1+
__version__ = '1.6.5'

Diff for: ‎plotly/widgets/graph_widget.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
# Load JS widget code
1515
# No officially recommended way to do this in any other way
1616
# http://mail.scipy.org/pipermail/ipython-dev/2014-April/013835.html
17-
directory = os.path.dirname(os.path.realpath(__file__))
18-
js_widget_file = os.path.join(directory, 'graphWidget.js')
1917
js_widget_code = resource_string('plotly',
20-
'widgets/graphWidgets.js').decode('utf-8')
18+
'widgets/graphWidget.js').decode('utf-8')
2119

2220
display(Javascript(js_widget_code))
2321

0 commit comments

Comments
 (0)
Please sign in to comment.