File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -59,14 +59,15 @@ class BaseTestRawIO:
5959
6060 local_test_dir = get_local_testing_data_folder ()
6161
62- def setUp (self ):
62+ @classmethod
63+ def setUpClass (cls ):
6364 """
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.
6566 """
66- self .shortname = self .rawioclass .__name__ .lower ().replace ("rawio" , "" )
67+ cls .shortname = cls .rawioclass .__name__ .lower ().replace ("rawio" , "" )
6768
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 :
7071 download_dataset (repo = repo_for_test , remote_path = remote_path )
7172 else :
7273 raise unittest .SkipTest ("Requires datalad download of data from the web" )
You can’t perform that action at this time.
0 commit comments