Skip to content

Commit

Permalink
Fix a tui test.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver committed Dec 4, 2023
1 parent f928d6e commit 0d65a09
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/integration/tui/test_mutations.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ async def gen_commands(schd):
while True:
await asyncio.sleep(0.1)
if not schd.command_queue.empty():
yield schd.command_queue.get()
# (ignore first item: command UUID)
yield schd.command_queue.get()[1:]


async def test_online_mutation(
Expand Down Expand Up @@ -76,7 +77,7 @@ async def test_online_mutation(
command = None
async for command in gen_commands(schd):
break
assert command == ('hold', (['1/one'],), {})
assert command == ('hold', [], {'tasks': ['1/one']})

# close the dialogue and re-run the hold mutation
rk.user_input('q', 'q', 'enter')
Expand Down

0 comments on commit 0d65a09

Please sign in to comment.