Skip to content

Commit

Permalink
States tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
jlowin committed Jun 26, 2020
1 parent c47081f commit 44081f7
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 321 deletions.
4 changes: 2 additions & 2 deletions src/prefect_server/_api/states.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async def set_flow_run_state(
)

if not flow_run:
raise ValueError(f"State update failed for flow run {flow_run_id}")
raise ValueError(f"State update failed for flow run ID {flow_run_id}")

# --------------------------------------------------------
# insert the new state in the database
Expand Down Expand Up @@ -185,7 +185,7 @@ async def set_task_run_state(
)

if not task_run:
raise ValueError(f"State update failed for task run {task_run_id}")
raise ValueError(f"State update failed for task run ID {task_run_id}")

# ------------------------------------------------------
# if the state is running, ensure the flow run is also running
Expand Down
273 changes: 0 additions & 273 deletions tests/graphql/test_server.py

This file was deleted.

Loading

0 comments on commit 44081f7

Please sign in to comment.