File tree Expand file tree Collapse file tree
plotly/tests/test_core/test_file Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88import random
99import string
1010from unittest import TestCase
11- from nose .tools import nottest
1211
1312import plotly .plotly as py
1413from plotly .exceptions import PlotlyRequestError
@@ -20,9 +19,9 @@ def setUp(self):
2019 py .sign_in ('PythonTest' , '9v9f20pext' )
2120
2221 def _random_filename (self ):
23- random_chars = [ random . choice ( string .ascii_uppercase )
24- for _ in range (5 )]
25- unique_filename = 'Valid Folder' + '' .join (random_chars )
22+ choice_chars = string . ascii_letters + string .digits
23+ random_chars = [ random . choice ( choice_chars ) for _ in range (10 )]
24+ unique_filename = 'Valid Folder ' + '' .join (random_chars )
2625 return unique_filename
2726
2827 def test_create_folder (self ):
@@ -41,7 +40,6 @@ def test_create_nested_folders(self):
4140 self .fail ('Expected this *not* to fail! Status: {}'
4241 .format (e .status_code ))
4342
44- @nottest
4543 def test_duplicate_folders (self ):
4644 first_folder = self ._random_filename ()
4745 py .file_ops .mkdirs (first_folder )
You can’t perform that action at this time.
0 commit comments