aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-04-25 17:46:03 +0200
committerGravatar GitHub <[email protected]>2021-04-25 17:46:03 +0200
commit387b1c090a2f95c66ed10d17160069c5624e9e0e (patch)
tree60c7639f5a20b30327a44ff2db048aeb3bc13bf3 /tests
parentMerge pull request #1529 from Numerlor/selective-trace (diff)
parentMerge branch 'main' into feat/1365/add-bot-badges-to-user (diff)
Merge pull request #1426 from python-discord/feat/1365/add-bot-badges-to-user
Add bot and verified bot badges to the user embed.
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/exts/info/test_information.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/bot/exts/info/test_information.py b/tests/bot/exts/info/test_information.py
index a996ce477..770660fe3 100644
--- a/tests/bot/exts/info/test_information.py
+++ b/tests/bot/exts/info/test_information.py
@@ -281,6 +281,7 @@ class UserEmbedTests(unittest.IsolatedAsyncioTestCase):
"""The embed should use the string representation of the user if they don't have a nick."""
ctx = helpers.MockContext(channel=helpers.MockTextChannel(id=1))
user = helpers.MockMember()
+ user.public_flags = unittest.mock.MagicMock(verified_bot=False)
user.nick = None
user.__str__ = unittest.mock.Mock(return_value="Mr. Hemlock")
user.colour = 0
@@ -297,6 +298,7 @@ class UserEmbedTests(unittest.IsolatedAsyncioTestCase):
"""The embed should use the nick if it's available."""
ctx = helpers.MockContext(channel=helpers.MockTextChannel(id=1))
user = helpers.MockMember()
+ user.public_flags = unittest.mock.MagicMock(verified_bot=False)
user.nick = "Cat lover"
user.__str__ = unittest.mock.Mock(return_value="Mr. Hemlock")
user.colour = 0