Skip to content

Commit

Permalink
Additional assertion and comments in test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Feb 6, 2023
1 parent a072601 commit 373ab0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dandi/tests/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ def test_validate_bids_errors(bids_error_examples, dataset):
validation_result = validate(selected_dataset)
with open(os.path.join(selected_dataset, ".ERRORS.json")) as f:
expected_errors = json.load(f)
validation_result = [i for i in validation_result]

# We know that these datasets contain errors.
assert len(validation_result) > 0

# But are they the right errors?
for i in validation_result:
if i.id == "BIDS.MATCH":
continue
Expand Down

0 comments on commit 373ab0d

Please sign in to comment.