Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BF: Correct import #15

Merged
merged 2 commits into from Apr 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 9 additions & 10 deletions datalad_neuroimaging/tests/test_search.py
Expand Up @@ -27,7 +27,7 @@
from datalad.api import search
from datalad.metadata import search as search_mod
try:
from datalad.metadata.extractors.tests.test_bids import bids_template
from datalad_neuroimaging.extractors.tests.test_bids import bids_template
except (ImportError, SkipTest):
# pybids might be absent which would preclude this import
bids_template = None
Expand Down Expand Up @@ -115,13 +115,12 @@ def test_within_ds_file_search(path):
bids.license
bids.modality
bids.name
bids.participant.age(years)
bids.participant.gender
bids.participant.handedness
bids.participant.hearing_problems_current
bids.participant.id
bids.participant.language
bids.subject
bids.subject.age(years)
bids.subject.gender
bids.subject.handedness
bids.subject.hearing_problems_current
bids.subject.id
bids.subject.language
bids.task
bids.type
datalad_core.id
Expand Down Expand Up @@ -175,10 +174,10 @@ def test_within_ds_file_search(path):
('autofield',
'female',
opj('sub-03', 'func', 'sub-03_task-other_bold.nii.gz'),
'bids.participant.gender', 'female'),
'bids.subject.gender', 'female'),
# autofield multi-word query is also AND
('autofield',
['bids.type:bold', 'bids.participant.id:01'],
['bids.type:bold', 'bids.subject.id:01'],
opj('sub-01', 'func', 'sub-01_task-some_bold.nii.gz'),
'bids.type', 'bold'),
# TODO extend with more complex queries to test whoosh
Expand Down