aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-09-16 21:37:49 +0200
committerGravatar GitHub <[email protected]>2019-09-16 21:37:49 +0200
commit2b4b0a55f76e1ed63ab6b3f9b6caf76f95c1cccd (patch)
tree07309446427c5f5ed4e88a3b29f5d188c6869dfc /tests/helpers.py
parentImplement `!otn search`. Closes #408. (diff)
parentUpdate discord.py version to 1.2.3 (#433) (diff)
Merge branch 'master' into otn-search-command
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)