Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
VerstraeteBert committed Jun 3, 2024
1 parent 0b6deeb commit d5ecb86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/tests_integration/test_api/test_data_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,13 +375,13 @@ def test_list_workflow_executions_by_status(

# the new execution should not be completed yet, but running
listed_completed = cognite_client.workflows.executions.list(
workflow_version_ids=add_multiply_workflow.as_id(), status=["completed"], limit=3
workflow_version_ids=add_multiply_workflow.as_id(), statuses=["completed"], limit=3
)
listed_running = cognite_client.workflows.executions.list(
workflow_version_ids=add_multiply_workflow.as_id(), status=["running"], limit=3
workflow_version_ids=add_multiply_workflow.as_id(), statuses=["running"], limit=3
)
assert filter(lambda x: x.id == result.id, listed_completed) == []
assert len(filter(lambda x: x.id == result.id, listed_running)) == 1
assert not any(x.id == result.id for x in listed_completed)
assert sum(1 for x in listed_running if x.id == result.id) == 1

def test_retrieve_workflow_execution_detailed(
self,
Expand Down

0 comments on commit d5ecb86

Please sign in to comment.