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

Skip to content

Commit df82c4c

Browse files
committed
Fix write_image paths
1 parent d9d9142 commit df82c4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotly-package/plotly/tests/test_orca/test_to_image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def test_write_image_string_no_extension_failure(fig1):
250250

251251
# Use file extension to infer image type.
252252
with pytest.raises(ValueError) as err:
253-
pio.write_image(fig1, os.path.join(file_path, 'fig1'))
253+
pio.write_image(fig1, file_path)
254254

255255
assert 'add a file extension or specify the type' in str(err.value)
256256

@@ -261,7 +261,7 @@ def test_write_image_string_bad_extension_failure(fig1):
261261

262262
# Use file extension to infer image type.
263263
with pytest.raises(ValueError) as err:
264-
pio.write_image(fig1, os.path.join(file_path, 'fig1'))
264+
pio.write_image(fig1, file_path)
265265

266266
assert 'must be specified as one of the following' in str(err.value)
267267

0 commit comments

Comments
 (0)