Skip to content

Commit

Permalink
Merge pull request #57 from akhanf/akhanf-patch-tests
Browse files Browse the repository at this point in the history
fixes to tests to allow random subject order
  • Loading branch information
akhanf authored Oct 5, 2021
2 parents 6c01fb4 + 1a7833a commit e8bc93d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions snakebids/tests/test_generate_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ def test_t1w():
assert config["input_wildcards"] == {
"t1": {"acq": "{acq}", "subject": "{subject}"}
}
assert config["subjects"] == ["001", "002"]
# Order of the subjects is not deterministic
assert config["subjects"] in [
["001", "002"],
["002", "001"]
]
assert config["sessions"] == []
assert config["subj_wildcards"] == {"subject": "{subject}"}

Expand Down Expand Up @@ -131,7 +135,12 @@ def test_t1w():
"t1": {"acq": "{acq}", "subject": "{subject}"},
"t2": {"subject": "{subject}"},
}
assert config["subjects"] == ["001", "002"]
# Order of the subjects is not deterministic
assert config["subjects"] in [
["001", "002"],
["002", "001"]
]

assert config["sessions"] == []
assert config["subj_wildcards"] == {"subject": "{subject}"}

Expand Down

0 comments on commit e8bc93d

Please sign in to comment.