Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD authored Nov 1, 2023
1 parent 7c6ec62 commit 113beca
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions dandi/tests/test_organize.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,3 +387,23 @@ def test_organize_required_field(simple2_nwb: Path, tmp_path: Path) -> None:
tmp_path / dandiset_metadata_file,
tmp_path / "sub-mouse001" / "sub-mouse001_ses-session-id1.nwb",
]


def test_organize_single_job(simple2_nwb: Path, tmp_path: Path) -> None:
(tmp_path / dandiset_metadata_file).write_text("{}\n")
r = CliRunner().invoke(
organize,
[
"-f",
"copy",
"--dandiset-path",
str(tmp_path),
"--jobs",
1,
],
)
assert r.exit_code == 0
assert list_paths(tmp_path) == [
tmp_path / dandiset_metadata_file,
tmp_path / "sub-mouse001" / "sub-mouse001_ses-session-id1.nwb",
]

0 comments on commit 113beca

Please sign in to comment.