guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 0d2030014d83e7af501497e4535534310cec1a79
Author: Vinicius Monego <[email protected]>
AuthorDate: Sat Jul 19 03:25:02 2025 -0300
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 c8036acf17..431f7f5e0b 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