Skip to content

Commit

Permalink
Show directory name for datasets in spec_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IanCa committed Jan 8, 2024
1 parent e94036c commit d2b0539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec_tests/validate_bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def test_validation(self):
bids_data = BidsDataset(dataset_path)
issues = bids_data.validate(check_for_warnings=False)
if issues:
self.fail_count.append(issues)
self.fail_count.append((directory, issues))
print(f"{len(self.fail_count)} tests got an unexpected result")
print("\n".join(get_printable_issue_string(issue, skip_filename=False) for issue in self.fail_count))
print("\n".join(get_printable_issue_string(issue, f"Errors in directory: {title}", skip_filename=False) for title, issue in self.fail_count))
self.assertEqual(0, len(self.fail_count))

if __name__ == '__main__':
Expand Down

0 comments on commit d2b0539

Please sign in to comment.