We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce80877 commit b0c4c46Copy full SHA for b0c4c46
nibabies/utils/tests/test_bids.py
@@ -78,5 +78,5 @@ def test_get_age_from_tsv_warning(tmp_path):
78
dual_participants = {'participant_id': ['sub-1', 'sub-2', 'sub-2']}
79
create_tsv({**dual_participants, **age_months}, tsv_file)
80
81
- with pytest.warns(UserWarning):
+ with pytest.warns(UserWarning, match='Multiple matches for participant_id:sub-2'):
82
_get_age_from_tsv(tsv_file, 'participant_id', 'sub-2')
0 commit comments