Skip to content

Commit

Permalink
Update test_run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jlowin committed Oct 25, 2024
1 parent b61c6f7 commit fe147ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_any_failed(self):
run_tasks([task1, task2], run_until=AnyFailed(), raise_on_failure=False)

assert task2.is_failed()
assert task1.is_incomplete()
assert not task1.is_failed()

def test_max_llm_calls(self):
task1 = Task("Task 1")
Expand Down Expand Up @@ -110,7 +110,7 @@ async def test_any_complete(self):
task1 = Task("Task 1")
task2 = Task("Task 2")

with instructions("complete task 2"):
with instructions("complete only task 2"):
await run_tasks_async([task1, task2], run_until=AnyComplete())

assert task2.is_complete()
Expand All @@ -120,13 +120,13 @@ async def test_any_failed(self):
task1 = Task("Task 1")
task2 = Task("Task 2")

with instructions("fail task 2"):
with instructions("fail only task 2"):
await run_tasks_async(
[task1, task2], run_until=AnyFailed(), raise_on_failure=False
)

assert task2.is_failed()
assert task1.is_incomplete()
assert not task1.is_failed()

async def test_max_llm_calls(self):
task1 = Task("Task 1")
Expand Down

0 comments on commit fe147ee

Please sign in to comment.