File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -59,14 +59,15 @@ class BaseTestRawIO:
59
59
60
60
local_test_dir = get_local_testing_data_folder ()
61
61
62
- def setUp (self ):
62
+ @classmethod
63
+ def setUpClass (cls ):
63
64
"""
64
- Set up the test fixture. This is run for every test
65
+ Set up the test fixture. This is run once before all tests.
65
66
"""
66
- self .shortname = self .rawioclass .__name__ .lower ().replace ("rawio" , "" )
67
+ cls .shortname = cls .rawioclass .__name__ .lower ().replace ("rawio" , "" )
67
68
68
- if HAVE_DATALAD and self .use_network :
69
- for remote_path in self .entities_to_download :
69
+ if HAVE_DATALAD and cls .use_network :
70
+ for remote_path in cls .entities_to_download :
70
71
download_dataset (repo = repo_for_test , remote_path = remote_path )
71
72
else :
72
73
raise unittest .SkipTest ("Requires datalad download of data from the web" )
Original file line number Diff line number Diff line change 1
1
import unittest
2
- import os
3
2
4
3
from neo .rawio .maxwellrawio import MaxwellRawIO , auto_install_maxwell_hdf5_compression_plugin
5
4
from neo .test .rawiotest .common_rawio_test import BaseTestRawIO
@@ -9,6 +8,7 @@ class TestMaxwellRawIO(
9
8
BaseTestRawIO ,
10
9
unittest .TestCase ,
11
10
):
11
+
12
12
rawioclass = MaxwellRawIO
13
13
entities_to_download = ["maxwell" ]
14
14
entities_to_test = files_to_test = [
@@ -18,7 +18,6 @@ class TestMaxwellRawIO(
18
18
19
19
def setUp (self ):
20
20
auto_install_maxwell_hdf5_compression_plugin (force_download = False )
21
- BaseTestRawIO .setUp (self )
22
21
23
22
24
23
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments