dev-python/django-configurations: Fix tests

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny 2024-06-19 18:55:08 +02:00
parent 97b707c919
commit 84f1bd8c62
No known key found for this signature in database
GPG Key ID: 639ADAE2329E240E
2 changed files with 18 additions and 0 deletions

View File

@ -37,6 +37,12 @@ BDEPEND="
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
PATCHES=(
# Update for dj-database-url == 2.2.0
# https://github.com/jazzband/django-configurations/issues/387
"${FILESDIR}/${P}-test.patch"
)
python_test() {
local -x DJANGO_SETTINGS_MODULE=tests.settings.main
local -x DJANGO_CONFIGURATION=Test

View File

@ -0,0 +1,12 @@
diff --git a/tests/test_values.py b/tests/test_values.py
index 55478e6..0b37907 100644
--- a/tests/test_values.py
+++ b/tests/test_values.py
@@ -377,6 +377,7 @@ class ValueTests(TestCase):
'default': {
'CONN_HEALTH_CHECKS': False,
'CONN_MAX_AGE': 0,
+ 'DISABLE_SERVER_SIDE_CURSORS': False,
'ENGINE': 'django.db.backends.sqlite3',
'HOST': '',
'NAME': ':memory:',