diff options
| author | 2020-06-11 21:51:40 +0100 | |
|---|---|---|
| committer | 2020-06-11 21:51:40 +0100 | |
| commit | 1fe7c9a0dfb52368aa640c2405b5688abca296b9 (patch) | |
| tree | 0c649248e6a1f5a7ddb2c29382974b3e4907834e /tests | |
| parent | Merge pull request #995 from python-discord/add-cooldown-channel (diff) | |
| parent | Merge branch 'master' into bad-words-nick (diff) | |
Merge pull request #964 from ks129/bad-words-nick
Filtering: Implement bad words detection in nicknames
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bot/utils/test_redis_cache.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/bot/utils/test_redis_cache.py b/tests/bot/utils/test_redis_cache.py index 8c1a40640..e5d6e4078 100644 --- a/tests/bot/utils/test_redis_cache.py +++ b/tests/bot/utils/test_redis_cache.py @@ -44,16 +44,6 @@ class RedisCacheTests(unittest.IsolatedAsyncioTestCase): with self.assertRaises(RuntimeError): await bad_cache.set("test", "me_up_deadman") - def test_namespace_collision(self): - """Test that we prevent colliding namespaces.""" - bob_cache_1 = RedisCache() - bob_cache_1._set_namespace("BobRoss") - self.assertEqual(bob_cache_1._namespace, "BobRoss") - - bob_cache_2 = RedisCache() - bob_cache_2._set_namespace("BobRoss") - self.assertEqual(bob_cache_2._namespace, "BobRoss_") - async def test_set_get_item(self): """Test that users can set and get items from the RedisDict.""" test_cases = ( |