diff options
author | 2019-09-16 21:37:49 +0200 | |
---|---|---|
committer | 2019-09-16 21:37:49 +0200 | |
commit | 2b4b0a55f76e1ed63ab6b3f9b6caf76f95c1cccd (patch) | |
tree | 07309446427c5f5ed4e88a3b29f5d188c6869dfc /tests/helpers.py | |
parent | Implement `!otn search`. Closes #408. (diff) | |
parent | Update 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.py | 10 |
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) |