diff options
| author | 2020-05-31 19:17:07 +0200 | |
|---|---|---|
| committer | 2020-05-31 19:17:07 +0200 | |
| commit | 876b4846f612fe0011cc2e0b498b4df9e54d74cb (patch) | |
| tree | a08d26932f1efd8a35e8a92ccba18375137c925e /tests | |
| parent | Merge pull request #973 from python-discord/kwzrd/improve-free (diff) | |
Add support for bool values in RedisCache
We're gonna need this for the help channel handling, and it seems like a
reasonable type to support anyway. It requires a tiny bit of special
handling, but nothing outrageous.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bot/utils/test_redis_cache.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/bot/utils/test_redis_cache.py b/tests/bot/utils/test_redis_cache.py index 8c1a40640..62c411681 100644 --- a/tests/bot/utils/test_redis_cache.py +++ b/tests/bot/utils/test_redis_cache.py @@ -59,7 +59,9 @@ class RedisCacheTests(unittest.IsolatedAsyncioTestCase): test_cases = ( ('favorite_fruit', 'melon'), ('favorite_number', 86), - ('favorite_fraction', 86.54) + ('favorite_fraction', 86.54), + ('favorite_boolean', False), + ('other_boolean', True), ) # Test that we can get and set different types. |