aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2019-09-15 23:38:17 +0200
committerGravatar GitHub <[email protected]>2019-09-15 23:38:17 +0200
commit7305de24dd4397e90c81ca27b8213568b8fbbd54 (patch)
treed5711bfd0618cd6565b5e4419846082e2f2b56be /tests/helpers.py
parentReplaces all GitLab refs with GitHub. (diff)
parentAdd tests for `bot.cogs.token_remover`. (diff)
Merge pull request #428 from python-discord/bot-cogs-token-remover-tests
Add tests for `bot.cogs.token_remover`.
Diffstat (limited to 'tests/helpers.py')
-rw-r--r--tests/helpers.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/helpers.py b/tests/helpers.py
new file mode 100644
index 000000000..57c6fcc1a
--- /dev/null
+++ b/tests/helpers.py
@@ -0,0 +1,10 @@
+from unittest.mock import MagicMock
+
+
+__all__ = ('AsyncMock',)
+
+
+# TODO: Remove me on 3.8
+class AsyncMock(MagicMock):
+ async def __call__(self, *args, **kwargs):
+ return super(AsyncMock, self).__call__(*args, **kwargs)