diff options
author | 2019-09-15 18:07:58 +0200 | |
---|---|---|
committer | 2019-09-15 18:07:58 +0200 | |
commit | 1dd55ae6055bbe320588a7f64de1a2bdd5ebaca3 (patch) | |
tree | 51c7a03d949bb90f6a45f3dd889536a31a6aab5d /tests/helpers.py | |
parent | Merge pull request #423 from python-discord/bot-pagination-tests (diff) |
Add tests for `bot.cogs.token_remover`.
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) |