aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-05-17 02:40:30 +0200
committerGravatar Leon Sandøy <[email protected]>2020-05-17 02:40:30 +0200
commit0843728927fe73be2f2e2c37381ead1497debe11 (patch)
treecfcb7a426c9e4793b547823212f172a3ca2b61ac
parentImplement .get, equality, and membership check (diff)
Add fakeredis to the Pipfile
-rw-r--r--Pipfile3
-rw-r--r--Pipfile.lock25
-rw-r--r--bot/utils/__init__.py2
3 files changed, 27 insertions, 3 deletions
diff --git a/Pipfile b/Pipfile
index 5f85b1e51..40ae52761 100644
--- a/Pipfile
+++ b/Pipfile
@@ -23,10 +23,11 @@ colorama = {version = "~=0.4.3",sys_platform = "== 'win32'"}
statsd = "~=3.3"
feedparser = "~=5.2"
beautifulsoup4 = "~=4.9"
-redis = ">=3.5"
+redis = "~=3.5"
[dev-packages]
coverage = "~=5.0"
+fakeredis = "~=1.4"
flake8 = "~=3.7"
flake8-annotations = "~=2.0"
flake8-bugbear = "~=20.1"
diff --git a/Pipfile.lock b/Pipfile.lock
index 1a420182d..414f4a053 100644
--- a/Pipfile.lock
+++ b/Pipfile.lock
@@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
- "sha256": "c6b4d38c4034e55a4bd598399f2e1f48b70a76693c986d0db0fae7442e224d41"
+ "sha256": "8ec71e9c46d52bf3b8c72939519e993715c79b4bc9e6ad164c1cf88951dc48b4"
},
"pipfile-spec": 6,
"requires": {
@@ -665,6 +665,14 @@
],
"version": "==0.3.0"
},
+ "fakeredis": {
+ "hashes": [
+ "sha256:4d170886865a91dbc8b7f8cbd4e5d488f4c5f2f25dfae127f001617bbe9e8f97",
+ "sha256:647b2593d349d9d4e566c8dadb2e4c71ba35be5bdc4f1f7ac2d565a12a965053"
+ ],
+ "index": "pypi",
+ "version": "==1.4.1"
+ },
"filelock": {
"hashes": [
"sha256:18d82244ee114f543149c66a6e0c14e9c4f8a1044b5cdaadd0f82159d6a6ff59",
@@ -816,6 +824,14 @@
"index": "pypi",
"version": "==5.3.1"
},
+ "redis": {
+ "hashes": [
+ "sha256:2ef11f489003f151777c064c5dbc6653dfb9f3eade159bcadc524619fddc2242",
+ "sha256:6d65e84bc58091140081ee9d9c187aab0480097750fac44239307a3bdf0b1251"
+ ],
+ "index": "pypi",
+ "version": "==3.5.2"
+ },
"six": {
"hashes": [
"sha256:236bdbdce46e6e6a3d61a337c0f8b763ca1e8717c03b369e87a7ec7ce1319c0a",
@@ -830,6 +846,13 @@
],
"version": "==2.0.0"
},
+ "sortedcontainers": {
+ "hashes": [
+ "sha256:974e9a32f56b17c1bac2aebd9dcf197f3eb9cd30553c5852a3187ad162e1a03a",
+ "sha256:d9e96492dd51fae31e60837736b38fe42a187b5404c16606ff7ee7cd582d4c60"
+ ],
+ "version": "==2.1.0"
+ },
"toml": {
"hashes": [
"sha256:926b612be1e5ce0634a2ca03470f95169cf16f939018233a670519cb4ac58b0f",
diff --git a/bot/utils/__init__.py b/bot/utils/__init__.py
index 7ae2db8fe..5ce383bf2 100644
--- a/bot/utils/__init__.py
+++ b/bot/utils/__init__.py
@@ -2,7 +2,7 @@ from abc import ABCMeta
from discord.ext.commands import CogMeta
-from bot.utils.redis import RedisDict
+from bot.utils.redis_dict import RedisDict
__all__ = ['RedisDict', 'CogABCMeta']