Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion checks/async/async10.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# checks/async/async10.py
import asyncio

assert asyncio.run(fetch_all(["ada", "lin", "guido"])) == "ADA,LIN,GUIDO"
assert asyncio.run(fetch_all(["ada", "lin", "guido"])) == "ADA,LIN,GUIDO", (
"fetch_all() should return the names uppercased and comma-separated"
)
print("async10 ok")
5 changes: 4 additions & 1 deletion checks/async/async7.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# checks/async/async7.py
import asyncio

assert asyncio.run(with_timeout()) == "done"
assert asyncio.run(with_timeout()) == "done", (
"with_timeout() should return 'done' within the timeout"
)
print("async7 ok")
3 changes: 2 additions & 1 deletion checks/async/async8.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
assert result == 42
# checks/async/async8.py
assert result == 42, "result should be 42 after running the async function"
print("async8 ok")
5 changes: 4 additions & 1 deletion checks/async/async9.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# checks/async/async9.py
import asyncio

assert asyncio.run(double_all([1, 2, 3])) == [2, 4, 6]
assert asyncio.run(double_all([1, 2, 3])) == [2, 4, 6], (
"double_all() should return [2, 4, 6] for [1, 2, 3]"
)
print("async9 ok")
Loading