mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-04 13:47:35 -08:00
dev-python/django-configurations: Fix tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
parent
97b707c919
commit
84f1bd8c62
@ -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
|
||||
|
||||
@ -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:',
|
||||
Loading…
x
Reference in New Issue
Block a user