Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 81bcfbd

Browse files
committed
Fix tests
Signed-off-by: Daniel Bluhm <[email protected]>
1 parent d92243a commit 81bcfbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_send.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ async def test_claim_next_messages(alice_gen, bob, dispatcher):
207207
async def test_next_raises_error_on_bad_condition(alice):
208208
"""Bad condition raises error."""
209209
with pytest.raises(TypeError):
210-
with alice.next(cond='asdf'):
210+
with alice.next(condition='asdf'):
211211
pass
212212

213213

@@ -216,7 +216,7 @@ async def test_next_condition(alice_gen, bob, dispatcher):
216216
"""Test hold condtions."""
217217
alice = alice_gen(dispatcher=dispatcher)
218218
with alice.next(
219-
cond=lambda msg: msg.type == MESSAGE.type
219+
condition=lambda msg: msg.type == MESSAGE.type
220220
) as message:
221221
await alice.handle(bob.pack(MESSAGE))
222222
assert dispatcher.dispatched is None

0 commit comments

Comments
 (0)