aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-06-25 11:48:02 +0300
committerGravatar ks129 <[email protected]>2020-06-25 11:48:02 +0300
commit1a812b7c3ef7048d8058c8c5a7d5e3afd0f86317 (patch)
tree54f314173bc849729c0d927feebfd62da3acbdb1 /tests
parentReorder tests order to match with original file (diff)
Remove unnecessary if statement from send_private_embed test
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/moderation/test_utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/bot/cogs/moderation/test_utils.py b/tests/bot/cogs/moderation/test_utils.py
index 0f6f9c469..029719669 100644
--- a/tests/bot/cogs/moderation/test_utils.py
+++ b/tests/bot/cogs/moderation/test_utils.py
@@ -290,8 +290,7 @@ class ModerationUtilsTests(unittest.IsolatedAsyncioTestCase):
result = await utils.send_private_embed(self.user, embed)
self.assertEqual(result, case.expected_output)
- if case.expected_output:
- self.user.send.assert_awaited_once_with(embed=embed)
+ self.user.send.assert_awaited_once_with(embed=embed)
class TestPostInfraction(unittest.IsolatedAsyncioTestCase):