@@ -179,6 +179,7 @@ def test_find_dandi_files_with_bids(tmp_path: Path) -> None:
179179 dandiset_metadata_file ,
180180 "foo.txt" ,
181181 "bar.nwb" ,
182+ "bids1/.bidsignore" ,
182183 "bids1/dataset_description.json" ,
183184 "bids1/file.txt" ,
184185 "bids1/subdir/quux.nwb" ,
@@ -196,6 +197,12 @@ def test_find_dandi_files_with_bids(tmp_path: Path) -> None:
196197
197198 assert files == [
198199 NWBAsset (filepath = tmp_path / "bar.nwb" , path = "bar.nwb" , dandiset_path = tmp_path ),
200+ GenericBIDSAsset (
201+ filepath = tmp_path / "bids1" / ".bidsignore" ,
202+ path = "bids1/.bidsignore" ,
203+ dandiset_path = tmp_path ,
204+ bids_dataset_description_ref = ANY , # type: ignore[arg-type]
205+ ),
199206 BIDSDatasetDescriptionAsset (
200207 filepath = tmp_path / "bids1" / "dataset_description.json" ,
201208 path = "bids1/dataset_description.json" ,
@@ -246,9 +253,15 @@ def test_find_dandi_files_with_bids(tmp_path: Path) -> None:
246253 ),
247254 ]
248255
249- bidsdd = files [1 ]
256+ bidsdd = files [2 ]
250257 assert isinstance (bidsdd , BIDSDatasetDescriptionAsset )
251258 assert sorted (bidsdd .dataset_files , key = attrgetter ("filepath" )) == [
259+ GenericBIDSAsset (
260+ filepath = tmp_path / "bids1" / ".bidsignore" ,
261+ path = "bids1/.bidsignore" ,
262+ dandiset_path = tmp_path ,
263+ bids_dataset_description_ref = ANY , # type: ignore[arg-type]
264+ ),
252265 GenericBIDSAsset (
253266 filepath = tmp_path / "bids1" / "file.txt" ,
254267 path = "bids1/file.txt" ,
@@ -271,7 +284,7 @@ def test_find_dandi_files_with_bids(tmp_path: Path) -> None:
271284 for asset in bidsdd .dataset_files :
272285 assert asset .bids_dataset_description is bidsdd
273286
274- bidsdd = files [5 ]
287+ bidsdd = files [6 ]
275288 assert isinstance (bidsdd , BIDSDatasetDescriptionAsset )
276289 assert sorted (bidsdd .dataset_files , key = attrgetter ("filepath" )) == [
277290 GenericBIDSAsset (
0 commit comments