guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

37/46: gnu: python-django-testing: Fix tests.


From: guix-commits
Subject: 37/46: gnu: python-django-testing: Fix tests.
Date: Tue, 21 Jul 2020 08:49:46 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit ba1c2e5b0d698ce6849f63af867d68cb1f8242b5
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Jul 21 14:17:25 2020 +0300

    gnu: python-django-testing: Fix tests.
    
    * gnu/packages/django.scm (python-django-tagging)[arguments]: Use custom
    'check phase.
    [inputs]: Add python-django.
---
 gnu/packages/django.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 7c89757..ce23946 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -1089,6 +1089,15 @@ higher quality while welcoming newcomers.")
         (base32
          "0s7b4v45j783yaxs7rni10k24san0ya77nqz4s7zdf3jhfpk42r1"))))
     (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (setenv "DJANGO_SETTINGS_MODULE" "tagging.tests.settings")
+             (invoke "django-admin" "test" "--pythonpath=."))))))
+    (inputs
+     `(("python-django" ,python-django)))
     (home-page "https://github.com/Fantomas42/django-tagging";)
     (synopsis "Generic tagging application for Django")
     (description "This package provides a generic tagging application for



reply via email to

[Prev in Thread] Current Thread [Next in Thread]