Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tcompa committed Nov 5, 2024
1 parent 6a6f141 commit 9f7b762
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 9 additions & 3 deletions tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ def test_edit_dataset(invoke, tmp_path, new_name):
res = invoke(f"project new {new_name()}")
project_id = res.data["id"]

res = invoke(f"project add-dataset {project_id} {new_name()} /tmp")
res = invoke(
f"project add-dataset {project_id} {new_name()} --zarr-dir /tmp"
)
dataset_id = res.data["id"]

NAME = new_name()
Expand Down Expand Up @@ -79,7 +81,9 @@ def test_delete_dataset(invoke, new_name):
res = invoke(f"project new {new_name()}")
project_id = res.data["id"]

res = invoke(f"project add-dataset {project_id} {new_name()} /tmp")
res = invoke(
f"project add-dataset {project_id} {new_name()} --zarr-dir /tmp"
)
dataset_id = res.data["id"]

# Delete dataset
Expand All @@ -94,7 +98,9 @@ def test_show_dataset(invoke, new_name):
# Create a project with its default dataset
res = invoke(f"project new {new_name()}")
project_id = res.data["id"]
res = invoke(f"project add-dataset {project_id} {new_name()} /tmp")
res = invoke(
f"project add-dataset {project_id} {new_name()} --zarr-dir /tmp"
)
dataset_id = res.data["id"]

res = invoke(f"dataset show {project_id} {dataset_id}")
Expand Down
3 changes: 2 additions & 1 deletion tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def test_project_list(invoke, new_name):
res = invoke(f"--batch project new {new_name()}")
project0_id = res.data
res = invoke(
f"--batch project add-dataset {project0_id} {new_name()} /tmp"
"--batch "
f"project add-dataset {project0_id} {new_name()} --zarr-dir /tmp"
)
res = invoke(f"--batch project new {new_name()}")

Expand Down

0 comments on commit 9f7b762

Please sign in to comment.