File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
plotly-package/plotly/tests/test_orca Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ def test_write_image_string_no_extension_failure(fig1):
250
250
251
251
# Use file extension to infer image type.
252
252
with pytest .raises (ValueError ) as err :
253
- pio .write_image (fig1 , os . path . join ( file_path , 'fig1' ) )
253
+ pio .write_image (fig1 , file_path )
254
254
255
255
assert 'add a file extension or specify the type' in str (err .value )
256
256
@@ -261,7 +261,7 @@ def test_write_image_string_bad_extension_failure(fig1):
261
261
262
262
# Use file extension to infer image type.
263
263
with pytest .raises (ValueError ) as err :
264
- pio .write_image (fig1 , os . path . join ( file_path , 'fig1' ) )
264
+ pio .write_image (fig1 , file_path )
265
265
266
266
assert 'must be specified as one of the following' in str (err .value )
267
267
You can’t perform that action at this time.
0 commit comments