aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-10-05 13:08:32 +0000
committerGravatar GitHub <[email protected]>2021-10-05 13:08:32 +0000
commit1d886bb3b0c488f7681e8b74f88000e9ce4be50d (patch)
tree2115d19780aeeab191ba75a7973ba547dfd97844
parentDefcon: ignore create thread perms (diff)
Test incidents: correct avatar reference
-rw-r--r--tests/bot/exts/moderation/test_incidents.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bot/exts/moderation/test_incidents.py b/tests/bot/exts/moderation/test_incidents.py
index a356e245f..583cb8bb3 100644
--- a/tests/bot/exts/moderation/test_incidents.py
+++ b/tests/bot/exts/moderation/test_incidents.py
@@ -379,7 +379,7 @@ class TestArchive(TestIncidents):
# Define our own `incident` to be archived
incident = MockMessage(
content="this is an incident",
- author=MockUser(name="author_name", avatar=Mock(url="author_avatar")),
+ author=MockUser(name="author_name", display_avatar=Mock(url="author_avatar")),
id=123,
)
built_embed = MagicMock(discord.Embed, id=123) # We patch `make_embed` to return this