~ruther/guix-local

0d2030014d83e7af501497e4535534310cec1a79 — Vinicius Monego 10 months ago ed0ee73
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
1 files changed, 14 insertions(+), 3 deletions(-)

M gnu/packages/django.scm
M gnu/packages/django.scm => gnu/packages/django.scm +14 -3
@@ 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