aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/bot/exts/moderation/test_incidents.py6
-rw-r--r--tests/bot/exts/moderation/test_silence.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/bot/exts/moderation/test_incidents.py b/tests/bot/exts/moderation/test_incidents.py
index f60c177c5..211eb1bf8 100644
--- a/tests/bot/exts/moderation/test_incidents.py
+++ b/tests/bot/exts/moderation/test_incidents.py
@@ -285,12 +285,12 @@ class TestIncidents(unittest.IsolatedAsyncioTestCase):
"""Flush everything from the database to prevent carry-overs between tests."""
await self.session.client.flushall()
- async def asyncSetUp(self): # noqa: N802
+ async def asyncSetUp(self):
self.session = RedisSession(use_fakeredis=True)
await self.session.connect()
await self.flush()
- async def asyncTearDown(self): # noqa: N802
+ async def asyncTearDown(self):
if self.session:
await self.session.client.close()
@@ -655,7 +655,7 @@ class TestOnRawReactionAdd(TestIncidents):
emoji="reaction",
)
- async def asyncSetUp(self): # noqa: N802
+ async def asyncSetUp(self):
"""
Prepare an empty task and assign it as `crawl_task`.
diff --git a/tests/bot/exts/moderation/test_silence.py b/tests/bot/exts/moderation/test_silence.py
index 03b7b2fdb..f5caefdca 100644
--- a/tests/bot/exts/moderation/test_silence.py
+++ b/tests/bot/exts/moderation/test_silence.py
@@ -18,14 +18,14 @@ from tests.helpers import (
redis_session = None
-def setUpModule(): # noqa: N802
+def setUpModule():
"""Create and connect to the fakeredis session."""
global redis_session
redis_session = RedisSession(use_fakeredis=True)
asyncio.run(redis_session.connect())
-def tearDownModule(): # noqa: N802
+def tearDownModule():
"""Close the fakeredis session."""
if redis_session:
asyncio.run(redis_session.client.close())