[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: |
Fri, 29 Jan 2021 09:21:53 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit c9c593b835c81d115336037c82bfd26fcffdee56
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)
- 59/131: gnu: python-fenics-ffc: Do not alter PYTHONPATH., (continued)
- 59/131: gnu: python-fenics-ffc: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 65/131: gnu: python-attrs: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 60/131: gnu: fenics: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 74/131: gnu: python-jsonschema: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 36/131: gnu: python-libtmux: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 51/131: gnu: fifengine: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 52/131: gnu: meson: Update to 0.56.2., guix-commits, 2021/01/29
- 53/131: gnu: meson-0.55: Update to 0.55.3., guix-commits, 2021/01/29
- 69/131: gnu: python-colorlog: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 72/131: gnu: python-aenum: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 41/131: gnu: python-pytest-django: Do not alter PYTHONPATH.,
guix-commits <=
- 47/131: gnu: python-django-url-filter: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 48/131: gnu: graphite2: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 54/131: gnu: gdk-pixbuf: Update to 2.42.2., guix-commits, 2021/01/29
- 55/131: gnu: python-fenics-dijitso: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 67/131: gnu: python-stone: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 68/131: gnu: python-typed-ast: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 71/131: gnu: python-hdf4: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 64/131: gnu: python-pynacl: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 66/131: gnu: python-pathos: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 63/131: gnu: python-pytest-isort: Do not set PYTHONPATH., guix-commits, 2021/01/29