diff options
| author | 2020-11-24 19:41:52 +0100 | |
|---|---|---|
| committer | 2020-11-24 19:41:52 +0100 | |
| commit | 25fe0c919edfffbca5a73554853d076455e2d997 (patch) | |
| tree | 69d4206970d43bd7f47fd570d651a9917bcb7137 /tests | |
| parent | Add more tests and some comments (diff) | |
fixing code to be flake8 compliant
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bot/exts/moderation/test_stream.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/bot/exts/moderation/test_stream.py b/tests/bot/exts/moderation/test_stream.py index 7aa2fae26..467c373aa 100644 --- a/tests/bot/exts/moderation/test_stream.py +++ b/tests/bot/exts/moderation/test_stream.py @@ -3,9 +3,9 @@ import unittest from async_rediscache import RedisSession -from bot.constants import TIME_FORMATS, Roles +from bot.constants import Roles from bot.exts.moderation.stream import Stream -from tests.helpers import MockBot, MockRole, MockMember +from tests.helpers import MockBot, MockMember, MockRole redis_session = None redis_loop = asyncio.get_event_loop() @@ -36,10 +36,6 @@ class StreamCommandTest(unittest.IsolatedAsyncioTestCase): This Test checks _link_from_alias method Checking for whether alias or key exists in TIME_FORMATS is done before calling this function """ - FORMATS = [] - for key, entry in TIME_FORMATS.items(): - FORMATS.extend(entry["aliases"]) - FORMATS.append(key) test_cases = (("sec", "second"), ("s", "second"), |