aboutsummaryrefslogtreecommitdiffstats
path: root/tests/base.py
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2020-02-24 02:12:02 +0100
committerGravatar Sebastiaan Zeeff <[email protected]>2020-02-24 02:12:02 +0100
commitb8bd18bd743608ddff47064d0b459edff3da65e3 (patch)
tree17042cf26ee42f8c38845905cc28a76ac43efd24 /tests/base.py
parentUse realistic mixin implementation (diff)
Migrate syncers test suite to Python 3.8
The test suite for the new role/member syncers used the "old"-style test suite with the helpers implemented for Python 3.7. I have migrated it to use the new Python 3.8 asyncio test helpers.
Diffstat (limited to 'tests/base.py')
-rw-r--r--tests/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/base.py b/tests/base.py
index 21613110e..42174e911 100644
--- a/tests/base.py
+++ b/tests/base.py
@@ -1,4 +1,5 @@
import logging
+import unittest
from contextlib import contextmanager
from typing import Dict
@@ -77,10 +78,9 @@ class LoggingTestsMixin:
self.fail(msg)
-class CommandTestCase(unittest.TestCase):
+class CommandTestCase(unittest.IsolatedAsyncioTestCase):
"""TestCase with additional assertions that are useful for testing Discord commands."""
- @helpers.async_test
async def assertHasPermissionsCheck(
self,
cmd: commands.Command,