Add test for passing config
@@ -35,6 +35,9 @@ def test_load_description(testlayout1):
data_dir = join(get_test_data_path(), 'images')
layout = BIDSLayout(data_dir)
assert e.value.message.startswith("Mandatory 'dataset_description'")
+
+ # Should not raise an error
+ layout = BIDSLayout(data_dir, config='derivatives')
assert hasattr(testlayout1, 'description')
assert testlayout1.description['Name'] == '7t_trt'
assert testlayout1.description['BIDSVersion'] == "1.0.0rc3"
