guix-commits
[Top][All Lists]
Advanced

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

06/24: gnu: python-django-sortedm2m: Fix tests.


From: guix-commits
Subject: 06/24: gnu: python-django-sortedm2m: Fix tests.
Date: Sun, 5 Dec 2021 08:16:24 -0500 (EST)

mbakke pushed a commit to branch core-updates-frozen
in repository guix.

commit e73f56544571a05bfa7cdaf79766d4985ed05247
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Wed Dec 1 00:47:58 2021 +0100

    gnu: python-django-sortedm2m: Fix tests.
    
    This is a follow-up to commit 283d5ac97f2f7663b788bd2fc3b9a27a3d82c7d5.
    
    * gnu/packages/django.scm (python-django-sortedm2m): Invoke django-admin 
with
    pythonpath and test settings.
---
 gnu/packages/django.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index b4ca3ab..f30ec2c 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -929,8 +929,9 @@ using Python multiprocessing.")
      `(#:phases (modify-phases %standard-phases
                   (replace 'check
                     (lambda _
-                      (invoke "python" "django-admin.py"
-                              "test" "--settings=settings"))))))
+                      (invoke "django-admin"
+                              "test" "--settings=test_project.settings"
+                              "--pythonpath=."))))))
     (propagated-inputs
      `(("python-django" ,python-django)))
     (home-page "https://github.com/jazzband/django-sortedm2m";)



reply via email to

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