aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-04-03 17:18:30 +0300
committerGravatar ks129 <[email protected]>2020-04-03 17:18:30 +0300
commit892777c19d0f5169b53a785deda9be3436b59663 (patch)
treedc370c4099854c6170d11b2fddacc909c34e70d1 /tests
parent(Information Tests, discord.py 1.3.x Migration): Fixed `InformationCogTests` ... (diff)
(Information Tests): Replaced `asyncio.run` with `await` in `UserInfractionHelperMethodTests.`
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/test_information.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bot/cogs/test_information.py b/tests/bot/cogs/test_information.py
index 941a049d9..60d49ff5c 100644
--- a/tests/bot/cogs/test_information.py
+++ b/tests/bot/cogs/test_information.py
@@ -194,7 +194,7 @@ class UserInfractionHelperMethodTests(unittest.IsolatedAsyncioTestCase):
endpoint, params = test_value["expected_args"]
with self.subTest(method=helper_method, endpoint=endpoint, params=params):
- asyncio.run(helper_method(self.member))
+ await helper_method(self.member)
self.bot.api_client.get.assert_called_once_with(endpoint, params=params)
self.bot.api_client.get.reset_mock()
@@ -208,7 +208,7 @@ class UserInfractionHelperMethodTests(unittest.IsolatedAsyncioTestCase):
self.bot.api_client.get.return_value = api_response
expected_output = "\n".join(default_header + expected_lines)
- actual_output = asyncio.run(method(self.member))
+ actual_output = await method(self.member)
self.assertEqual(expected_output, actual_output)