pretix: add patch for fakeredis 0.25.x compat
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
diff --git a/src/pretix/testutils/mock.py b/src/pretix/testutils/mock.py
|
||||
index 66ee3fb52..9d9ba02bd 100644
|
||||
--- a/src/pretix/testutils/mock.py
|
||||
+++ b/src/pretix/testutils/mock.py
|
||||
@@ -38,4 +38,4 @@ def mocker_context():
|
||||
|
||||
|
||||
def get_redis_connection(alias="default", write=True):
|
||||
- return fakeredis.FakeStrictRedis(server=fakeredis.FakeServer.get_server("127.0.0.1:None:v(7, 0)", (7, 0)))
|
||||
+ return fakeredis.FakeStrictRedis(server=fakeredis.FakeServer.get_server("127.0.0.1:None:v(7, 0)", (7, 0), server_type="redis"))
|
||||
@@ -87,6 +87,9 @@ python.pkgs.buildPythonApplication rec {
|
||||
# Discover pretix.plugin entrypoints during build and add them into
|
||||
# INSTALLED_APPS, so that their static files are collected.
|
||||
./plugin-build.patch
|
||||
|
||||
# TypeError: FakeServer.get_server() missing 1 required positional argument: 'server_type'
|
||||
./fakeredis-0.25-compat.patch
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
@@ -98,6 +101,7 @@ python.pkgs.buildPythonApplication rec {
|
||||
"protobuf"
|
||||
"pyjwt"
|
||||
"python-bidi"
|
||||
"redis"
|
||||
"requests"
|
||||
"sentry-sdk"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user