Skip to content

Commit

Permalink
Fix after update to fix task root
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Jan 29, 2025
1 parent 9b7cd95 commit d477312
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hipercow/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def task_info(root: Root, task_id: str) -> TaskInfo:
def task_list(
root: Root, *, with_status: TaskStatus | None = None
) -> list[str]:
contents = (root.path / "tasks").rglob("data")
contents = (root.path / "hipercow" / "tasks").rglob("data")
ids = ["".join(el.parts[-3:-1]) for el in contents if el.is_file()]
if with_status is not None:
ids = [i for i in ids if task_status(root, i) & with_status]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ def test_can_save_and_read_log(tmp_path):
res = runner.invoke(cli.cli_task_eval, [task_id, "--capture"])
assert res.exit_code == 0

res = runner.invoke(cli.cli_log, task_id)
res = runner.invoke(cli.cli_task_log, task_id)
assert res.exit_code == 0
assert res.output == "hello world\n\n"

res = runner.invoke(cli.cli_log, [task_id, "--filename"])
res = runner.invoke(cli.cli_task_log, [task_id, "--filename"])
assert res.exit_code == 0
assert res.output.strip() == str(r.path_task_log(task_id))

Expand Down

0 comments on commit d477312

Please sign in to comment.