commit: 84f1bd8c629d9ed7be04d69425d1c83d0f3c132c
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 19 16:55:08 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 19 17:21:40 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84f1bd8c
dev-python/django-configurations: Fix tests
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../django-configurations/django-configurations-2.5.1.ebuild | 6 ++++++
.../files/django-configurations-2.5.1-test.patch | 12 ++++++++++++
2 files changed, 18 insertions(+)
diff --git
a/dev-python/django-configurations/django-configurations-2.5.1.ebuild
b/dev-python/django-configurations/django-configurations-2.5.1.ebuild
index 86eac772cff2..f04a60f99ea5 100644
--- a/dev-python/django-configurations/django-configurations-2.5.1.ebuild
+++ b/dev-python/django-configurations/django-configurations-2.5.1.ebuild
@@ -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
diff --git
a/dev-python/django-configurations/files/django-configurations-2.5.1-test.patch
b/dev-python/django-configurations/files/django-configurations-2.5.1-test.patch
new file mode 100644
index 000000000000..c32586f7c3e8
--- /dev/null
+++
b/dev-python/django-configurations/files/django-configurations-2.5.1-test.patch
@@ -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:',