Skip to content

Commit

Permalink
Once-off DANDIfication of BIDS testdataset no longer required
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Feb 6, 2023
1 parent b8d9cd2 commit 4926477
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions dandi/tests/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import pytest

from .fixtures import BIDS_TESTDATA_SELECTION
from ..consts import dandiset_metadata_file
from ..validate import validate, validate_bids


Expand Down Expand Up @@ -50,10 +49,7 @@ def test_validate_bids_onefile(bids_error_examples, tmp_path):
bids_dataset_path = pathlib.Path(
os.path.join(bids_error_examples, selected_dataset)
)
(bids_dataset_path / dandiset_metadata_file).write_text("{}\n")
error_reference = os.path.join(
bids_error_examples, selected_dataset, ".ERRORS.json"
)
error_reference = os.path.join(bids_dataset_path, ".ERRORS.json")
with open(error_reference) as f:
expected_errors = json.load(f)
validation_result = validate(bids_file_path)
Expand Down

0 comments on commit 4926477

Please sign in to comment.