diff options
author | 2020-05-22 16:23:12 -0700 | |
---|---|---|
committer | 2020-05-22 16:23:12 -0700 | |
commit | 1ad7833d800918efca06e5d6b2fbafdb0d757009 (patch) | |
tree | e93bd6d96b076bc38a15ee94656df9770895337a /tests/base.py | |
parent | Fix unawaited coro warning when instantiating Bot for MockBot's spec (diff) |
Properly mock the redis pool in MockBot
Because some of the redis pool/connection methods return futures rather
than being coroutines, the redis pool had to be mocked using the
CustomMockMixin so it could take advantage of `additional_spec_asyncs`
to use AsyncMocks for these future-returning methods.
Diffstat (limited to 'tests/base.py')
0 files changed, 0 insertions, 0 deletions