Skip to content

Commit 21ecba9

Browse files
committed
test provenance --no-data added and a TODO check for check_bagit if we can run it when there is no data in the data provenance folder.
1 parent 049dcd7 commit 21ecba9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_provenance.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
def cwltool(tmp_path: Path, *args: Any) -> Path:
3535
prov_folder = tmp_path / "provenance"
3636
prov_folder.mkdir()
37-
new_args = ["--provenance", str(prov_folder)]
37+
new_args = ["--no-data", "--provenance", str(prov_folder)]
3838
new_args.extend(args)
3939
# Run within a temporary directory to not pollute git checkout
4040
tmp_dir = tmp_path / "cwltool-run"
@@ -240,6 +240,7 @@ def check_provenance(
240240
secondary_files: bool = False,
241241
) -> None:
242242
check_folders(base_path)
243+
# TODO can we run check_bagit if there is no data in data?
243244
check_bagit(base_path)
244245
check_ro(base_path, nested=nested)
245246
check_prov(

0 commit comments

Comments
 (0)