Skip to content

Commit

Permalink
Add problematic examples from openMetadataInitiative#21 to test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
apdavison committed Apr 16, 2024
1 parent 806ff25 commit 55ffa65
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 55ffa65

Please sign in to comment.