File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
packages/python/plotly/plotly/tests/test_core/test_offline Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 14
14
import plotly .io as pio
15
15
import json
16
16
17
- project_root = os .path .dirname (
17
+ packages_root = os .path .dirname (
18
18
os .path .dirname (
19
19
os .path .dirname (
20
- os .path .realpath (plotly .__file__ ))))
20
+ os .path .dirname (
21
+ os .path .realpath (plotly .__file__ )))))
21
22
22
23
here = os .path .dirname (os .path .realpath (__file__ ))
23
24
html_filename = os .path .join (here , 'temp-plot.html' )
@@ -311,7 +312,12 @@ def get_html():
311
312
312
313
@attr ('nodev' )
313
314
def test_plotlyjs_version (self ):
314
- path = os .path .join (project_root , 'js' , 'package.json' )
315
+ path = os .path .join (
316
+ packages_root ,
317
+ 'javascript' ,
318
+ 'plotlywidget' ,
319
+ 'package.json' ,
320
+ )
315
321
with open (path , 'rt' ) as f :
316
322
package_json = json .load (f )
317
323
expected_version = package_json ['dependencies' ]['plotly.js' ]
You can’t perform that action at this time.
0 commit comments