File tree 1 file changed +6
-10
lines changed
1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 55
55
56
56
class ImportExportTest (TestCase ):
57
57
58
- @classmethod
59
- def setUpClass (cls ):
60
- cls .tmp_dir = tempfile .mkdtemp (suffix = 'tmuxp' )
58
+ def setUp (self ):
59
+ self .tmp_dir = tempfile .mkdtemp (suffix = 'tmuxp' )
61
60
62
- return cls
61
+ def tearDown (self ):
62
+ if os .path .isdir (self .tmp_dir ):
63
+ shutil .rmtree (self .tmp_dir )
64
+ logging .debug ('wiped %s' % TMUXP_DIR )
63
65
64
66
def test_export_json (self ):
65
67
json_config_file = os .path .join (self .tmp_dir , 'config.json' )
@@ -124,12 +126,6 @@ def test_scan_config(self):
124
126
125
127
self .assertEqual (len (configs ), files )
126
128
127
- @classmethod
128
- def tearDownClass (cls ):
129
- if os .path .isdir (cls .tmp_dir ):
130
- shutil .rmtree (cls .tmp_dir )
131
- logging .debug ('wiped %s' % TMUXP_DIR )
132
-
133
129
134
130
class ExpandTest (TestCase ):
135
131
You can’t perform that action at this time.
0 commit comments