File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
plotly/tests/test_core/test_file Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 8
8
import random
9
9
import string
10
10
from unittest import TestCase
11
- from nose .tools import nottest
12
11
13
12
import plotly .plotly as py
14
13
from plotly .exceptions import PlotlyRequestError
@@ -20,9 +19,9 @@ def setUp(self):
20
19
py .sign_in ('PythonTest' , '9v9f20pext' )
21
20
22
21
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 )
26
25
return unique_filename
27
26
28
27
def test_create_folder (self ):
@@ -41,7 +40,6 @@ def test_create_nested_folders(self):
41
40
self .fail ('Expected this *not* to fail! Status: {}'
42
41
.format (e .status_code ))
43
42
44
- @nottest
45
43
def test_duplicate_folders (self ):
46
44
first_folder = self ._random_filename ()
47
45
py .file_ops .mkdirs (first_folder )
You can’t perform that action at this time.
0 commit comments