@@ -17,7 +17,7 @@ async def test_team_join_handler_exists(bot):
1717 )
1818
1919
20- async def test_team_join_waits_30_seconds (bot , test_client ):
20+ async def test_team_join_waits_30_seconds (bot , aiohttp_client ):
2121 asyncio .sleep = CoroutineMock ()
2222 create_endpoints (bot ['plugins' ]['slack' ])
2323 bot ['plugins' ]['slack' ] = CoroutineMock ()
@@ -26,24 +26,24 @@ async def test_team_join_waits_30_seconds(bot, test_client):
2626 asyncio .sleep .assert_awaited_with (30 )
2727
2828
29- async def test_edits_are_logged (bot , test_client , caplog ):
30- client = await test_client (bot )
29+ async def test_edits_are_logged (bot , aiohttp_client , caplog ):
30+ client = await aiohttp_client (bot )
3131
3232 with caplog .at_level (logging .INFO ):
3333 await client .post ('/slack/events' , json = MESSAGE_EDIT )
3434 assert any ('CHANGE_LOGGING: edited' in record .message for record in caplog .records )
3535
3636
37- async def test_deletes_are_logged (bot , test_client , caplog ):
38- client = await test_client (bot )
37+ async def test_deletes_are_logged (bot , aiohttp_client , caplog ):
38+ client = await aiohttp_client (bot )
3939
4040 with caplog .at_level (logging .INFO ):
4141 await client .post ('/slack/events' , json = MESSAGE_DELETE )
4242 assert any ('CHANGE_LOGGING: deleted' in record .message for record in caplog .records )
4343
4444
45- async def test_no_other_messages_logged (bot , test_client , caplog ):
46- client = await test_client (bot )
45+ async def test_no_other_messages_logged (bot , aiohttp_client , caplog ):
46+ client = await aiohttp_client (bot )
4747
4848 with caplog .at_level (logging .INFO ):
4949 await client .post ('/slack/events' , json = PLAIN_MESSAGE )
0 commit comments