diff options
author | 2020-09-20 22:08:16 +0300 | |
---|---|---|
committer | 2020-09-20 22:08:16 +0300 | |
commit | c22561d2f527666def2e201e655f5ac767d95212 (patch) | |
tree | 931c3738b7a90867424af1a28f4bb43acd953785 /tests | |
parent | Remove useless textwrap import (diff) |
Try to fix location from where post infraction test get ID
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bot/cogs/moderation/test_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bot/cogs/moderation/test_utils.py b/tests/bot/cogs/moderation/test_utils.py index c9a4e4040..02a18bbca 100644 --- a/tests/bot/cogs/moderation/test_utils.py +++ b/tests/bot/cogs/moderation/test_utils.py @@ -306,7 +306,7 @@ class TestPostInfraction(unittest.IsolatedAsyncioTestCase): """Should return response from POST request if there are no errors.""" now = datetime.now() payload = { - "actor": self.ctx.message.author.id, + "actor": self.ctx.author.id, "hidden": True, "reason": "Test reason", "type": "ban", @@ -344,7 +344,7 @@ class TestPostInfraction(unittest.IsolatedAsyncioTestCase): async def test_first_fail_second_success_user_post_infraction(self, post_user_mock): """Should post the user if they don't exist, POST infraction again, and return the response if successful.""" payload = { - "actor": self.ctx.message.author.id, + "actor": self.ctx.author.id, "hidden": False, "reason": "Test reason", "type": "mute", |