Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mraniki committed Jul 25, 2023
1 parent 6ae8ec7 commit ea04c67
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,7 @@ async def test_run_bot():
task = asyncio.create_task(run_bot())
await asyncio.sleep(1)
start_bot.assert_awaited
listener_created = (
asyncio.current_task()
.get_coro()
.cr_frame
.f_locals['listener']
)
listener_created = listener_instance
assert isinstance(listener_created, Listener)

Check notice

Code scanning / Bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Note test

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
task.cancel()
with pytest.raises(asyncio.CancelledError):
Expand Down

0 comments on commit ea04c67

Please sign in to comment.