13
13
14
14
15
15
class TestOdsNxlsMultipleSheets (PyexcelMultipleSheetBase ):
16
- def setUp (self ):
16
+ def setup_method (self ):
17
17
self .testfile = "multiple1.ods"
18
18
self .testfile2 = "multiple1.xls"
19
19
self .content = _produce_ordered_dict ()
20
20
self ._write_test_file (self .testfile )
21
21
22
- def tearDown (self ):
22
+ def teardown_method (self ):
23
23
self ._clean_up ()
24
24
25
25
26
26
class TestXlsNOdsMultipleSheets (PyexcelMultipleSheetBase ):
27
- def setUp (self ):
27
+ def setup_method (self ):
28
28
self .testfile = "multiple1.xls"
29
29
self .testfile2 = "multiple1.ods"
30
30
self .content = _produce_ordered_dict ()
31
31
self ._write_test_file (self .testfile )
32
32
33
- def tearDown (self ):
33
+ def teardown_method (self ):
34
34
self ._clean_up ()
35
35
36
36
@@ -46,7 +46,7 @@ def _write_test_file(self, file):
46
46
self .rows = 3
47
47
pyexcel .save_book_as (bookdict = self .content , dest_file_name = file )
48
48
49
- def setUp (self ):
49
+ def setup_method (self ):
50
50
self .testfile = "multiple1.ods"
51
51
self .testfile2 = "multiple1.xls"
52
52
self .content = _produce_ordered_dict ()
@@ -218,15 +218,15 @@ def test_add_book_error(self):
218
218
except TypeError :
219
219
assert 1 == 1
220
220
221
- def tearDown (self ):
221
+ def teardown_method (self ):
222
222
if os .path .exists (self .testfile ):
223
223
os .unlink (self .testfile )
224
224
if os .path .exists (self .testfile2 ):
225
225
os .unlink (self .testfile2 )
226
226
227
227
228
228
class TestMultiSheetReader :
229
- def setUp (self ):
229
+ def setup_method (self ):
230
230
self .testfile = "file_with_an_empty_sheet.ods"
231
231
232
232
def test_reader_with_correct_sheets (self ):
0 commit comments