Skip to content

Commit 66001f4

Browse files
committed
make test base mixing per class instead of per test
1 parent 32ac313 commit 66001f4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

neo/test/rawiotest/common_rawio_test.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)