aboutsummaryrefslogtreecommitdiffstats
path: root/tests/__init__.py
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2019-11-14 10:58:40 +0100
committerGravatar Sebastiaan Zeeff <[email protected]>2019-11-14 10:58:40 +0100
commit61051f9cc5abbf571dfa13c49324109ef16f78fc (patch)
tree33eefa7c66ddc698390ee51b6fbe32244a99befa /tests/__init__.py
parentAdd bot=False default value to MockMember (diff)
Add MockAttachment type and attachments default for MockMessage
As stated from the start, our intention is to add custom mock types as we need them for testing. While writing tests for DuckPond, I noticed that we did not have a mock type for Attachments, so I added one with this commit. In addition, I think it's a very sensible for MockMessage to have an empty list as a default value for the `attachements` attribute. This is equal to what `discord.Message` returns for a message without attachments and makes sure that if you don't explicitely add an attachment to a message, `MockMessage.attachments` tests as falsey.
Diffstat (limited to 'tests/__init__.py')
0 files changed, 0 insertions, 0 deletions