Skip to content

Commit

Permalink
Be a bit more accurate in identifying test data as existent
Browse files Browse the repository at this point in the history
  • Loading branch information
liadomide committed Jan 26, 2023
1 parent 5ff2457 commit 5903296
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
try:
import tvb_data.bids

BIDS_DATA_FOUND = True
BIDS_DATA = os.path.join(os.path.dirname(tvb_data.bids.__file__), 'bids_derivatives_dataset.zip')
BIDS_DATA_FOUND = os.path.exists(BIDS_DATA)

except ImportError:
BIDS_DATA_FOUND = False

Expand All @@ -55,7 +57,7 @@ def setup_method(self):
"""
self.test_user = TestFactory.create_user('Zip_BIDS_User')
self.test_project = TestFactory.create_project(self.test_user, 'Zip_BIDS_Project')
self.zip_file_path = os.path.join(os.path.dirname(tvb_data.bids.__file__), 'bids_derivatives_dataset.zip')
self.zip_file_path = BIDS_DATA

def teardown_method(self):
"""
Expand Down

0 comments on commit 5903296

Please sign in to comment.