[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
41/131: gnu: python-pytest-django: Do not alter PYTHONPATH.
From: |
guix-commits |
Subject: |
41/131: gnu: python-pytest-django: Do not alter PYTHONPATH. |
Date: |
Mon, 1 Feb 2021 11:56:42 -0500 (EST) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit fbf120aad801984ee3a432b861add7951335a323
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Jan 23 00:22:44 2021 -0500
gnu: python-pytest-django: Do not alter PYTHONPATH.
* gnu/packages/django.scm (python-django): Remove trailing #t.
[phases]{check}: Do not alter PYTHONPATH.
---
gnu/packages/django.scm | 30 +++++++++++++-----------------
1 file changed, 13 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 091d757..66f4362 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -7,6 +7,7 @@
;;; Copyright © 2018 Vijayalakshmi Vedantham <vijimay12@gmail.com>
;;; Copyright © 2019 Sam <smbaines8@gmail.com>
;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
+;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -309,23 +310,18 @@ size and quality.")
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(if tests?
- (begin
- (add-installed-pythonpath inputs outputs)
- (setenv "PYTHONPATH"
- (string-append ".:" ;for pytest_django_test
- (getenv "PYTHONPATH")))
- (setenv "PYTEST_DJANGO_TEST_RUNNER" "pytest")
- (setenv "DJANGO_SETTINGS_MODULE"
- "pytest_django_test.settings_sqlite_file")
- (invoke "pytest" "-vv" "-k"
- ;; FIXME: these tests fail to locate Django
templates ...
- (string-append "not
test_django_not_loaded_without_settings"
- " and not test_settings"
- ;; ... and this does not discover
- ;; 'pytest_django_test'.
- " and not
test_urls_cache_is_cleared")))
- (format #t "test suite not run~%"))
- #t)))))
+ (begin
+ (setenv "PYTEST_DJANGO_TEST_RUNNER" "pytest")
+ (setenv "DJANGO_SETTINGS_MODULE"
+ "pytest_django_test.settings_sqlite_file")
+ (invoke "python" "-m" "pytest" "-vv" "-k"
+ ;; FIXME: these tests fail to locate Django templates
...
+ (string-append "not
test_django_not_loaded_without_settings"
+ " and not test_settings"
+ ;; ... and this does not discover
+ ;; 'pytest_django_test'.
+ " and not
test_urls_cache_is_cleared")))
+ (format #t "test suite not run~%")))))))
(native-inputs
`(("python-django" ,python-django)
("python-setuptools-scm" ,python-setuptools-scm)
- 30/131: gnu: python-xmlschema: Do not set PYTHONPATH., (continued)
- 30/131: gnu: python-xmlschema: Do not set PYTHONPATH., guix-commits, 2021/02/01
- 29/131: gnu: python-loompy: Do not set PYTHONPATH., guix-commits, 2021/02/01
- 13/131: gnu: python-black: Remove blackd., guix-commits, 2021/02/01
- 15/131: gnu: python-idna-ssl: Add missing input., guix-commits, 2021/02/01
- 21/131: gnu: python2-virtualenv: Fix build., guix-commits, 2021/02/01
- 31/131: gnu: python-cffi: Do not set PYTHONPATH., guix-commits, 2021/02/01
- 32/131: gnu: linkchecker: Do not set PYTHONPATH., guix-commits, 2021/02/01
- 36/131: gnu: python-libtmux: Do not set PYTHONPATH., guix-commits, 2021/02/01
- 38/131: gnu: ghmm: Do not set PYTHONPATH., guix-commits, 2021/02/01
- 40/131: gnu: python-django: Do not alter PYTHONPATH., guix-commits, 2021/02/01
- 41/131: gnu: python-pytest-django: Do not alter PYTHONPATH.,
guix-commits <=
- 42/131: gnu: python-django-contact-form: Do not alter PYTHONPATH., guix-commits, 2021/02/01
- 44/131: gnu: python-django-sortedm2m: Do not alter PYTHONPATH., guix-commits, 2021/02/01
- 50/131: gnu: intel-xed: Update to 12.0.1., guix-commits, 2021/02/01
- 56/131: gnu: python-fenics-ufl: Do not alter PYTHONPATH., guix-commits, 2021/02/01
- 51/131: gnu: fifengine: Do not alter PYTHONPATH., guix-commits, 2021/02/01
- 47/131: gnu: python-django-url-filter: Do not alter PYTHONPATH., guix-commits, 2021/02/01
- 54/131: gnu: gdk-pixbuf: Update to 2.42.2., guix-commits, 2021/02/01
- 52/131: gnu: meson: Update to 0.56.2., guix-commits, 2021/02/01
- 55/131: gnu: python-fenics-dijitso: Do not alter PYTHONPATH., guix-commits, 2021/02/01
- 60/131: gnu: fenics: Do not alter PYTHONPATH., guix-commits, 2021/02/01