From 0d2030014d83e7af501497e4535534310cec1a79 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Sat, 19 Jul 2025 03:25:02 -0300 Subject: [PATCH] gnu: python-django-extensions: Enable tests. * gnu/packages/django.scm (python-django-extensions)[arguments]: Remove '#:tests? #f'. <#:test-flags>: Ignore failing tests. [native-inputs]: Add python-aiosmtpd, python-pygments. Change-Id: Ibf4e76f1714b97d9ba6184f4f08bca851c52f78d --- gnu/packages/django.scm | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index c8036acf1769dc1144a65608e67141de53f29acc..431f7f5e0b0c958c2d5975d845bedd56cc7eb076 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -45,6 +45,7 @@ #:use-module (gnu packages check) #:use-module (gnu packages finance) #:use-module (gnu packages geo) + #:use-module (gnu packages mail) #:use-module (gnu packages openldap) #:use-module (gnu packages python) #:use-module (gnu packages python-build) @@ -245,13 +246,23 @@ and adapters that are useful for non-trivial configuration scenarios.") (base32 "1qayan9za7ylvzkwp6p0l0735gavnzd1kdjsfc178smq6xnby0ss")))) (build-system pyproject-build-system) (arguments - '(#:tests? #f)) ;XXX: requires a Postgres or MySQL database + (list + ;; The 5 tests in test_dumbscript.py fail (OperationalError). + #:test-flags + #~(list "--ignore" "tests/test_dumpscript.py" + "-k" (string-append + ;; These fail for unknown reasons. + "not test_do_export_emails_format_vcard_start" + " and not test_initialize_runserver_plus" + " and not test_should_highlight_python_syntax_with_name")))) (propagated-inputs (list python-django)) (native-inputs - (list python-factory-boy + (list python-aiosmtpd + python-factory-boy + python-pygments python-pytest - python-pytest-cov + python-pytest-cov ; runs by default python-pytest-django python-setuptools-next python-shortuuid