Skip to content

Commit

Permalink
Merge pull request #27 from apdavison/more-tests
Browse files Browse the repository at this point in the history
Add problematic examples from #21 to test suite
  • Loading branch information
apdavison authored Apr 16, 2024
2 parents 806ff25 + 55ffa65 commit 5edbb77
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/test_bids_examples.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import os
import pytest
from openminds import Collection

import bids2openminds.converter

example_dataset_labels = ("ds003", "ds000247", "eeg_cbm", "asl001")

def test_example_datasets():
test_dir = os.path.join("bids-examples", "ds003")
@pytest.mark.parametrize("dataset_label", example_dataset_labels)
def test_example_datasets(dataset_label):
test_dir = os.path.join("bids-examples", dataset_label)
bids2openminds.converter.convert(test_dir)
c = Collection()
c.load(os.path.join(test_dir, "openminds.jsonld"))

0 comments on commit 5edbb77

Please sign in to comment.