Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fd245e0

Browse files
committed
Fix test paths
1 parent a702baf commit fd245e0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/python/plotly/plotly/tests/test_core/test_offline/test_offline.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
import plotly.io as pio
1515
import json
1616

17-
project_root = os.path.dirname(
17+
packages_root = os.path.dirname(
1818
os.path.dirname(
1919
os.path.dirname(
20-
os.path.realpath(plotly.__file__))))
20+
os.path.dirname(
21+
os.path.realpath(plotly.__file__)))))
2122

2223
here = os.path.dirname(os.path.realpath(__file__))
2324
html_filename = os.path.join(here, 'temp-plot.html')
@@ -311,7 +312,12 @@ def get_html():
311312

312313
@attr('nodev')
313314
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+
)
315321
with open(path, 'rt') as f:
316322
package_json = json.load(f)
317323
expected_version = package_json['dependencies']['plotly.js']

0 commit comments

Comments
 (0)