def test_config_filename(config_type): data_path = Path(get_test_data_path()) # Use custom config that replaces session with oligarchy config_path = data_path.parent / 'bids_specs_with_oligarchy.json' layout = BIDSLayout(data_path / "7t_trt", config=config_type(config_path)) # Validate that we are using the desired configuration assert 'oligarchy' in layout.get_entities()