summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2025-07-14 22:55:57 -0300
committerVinicius Monego <monego@posteo.net>2025-07-19 04:10:10 -0300
commit6e7b43cbc34d20b5efb5999f43058a5dc2c3a1b5 (patch)
tree12845b297926afbcd3b285296c58fd1f1839f08f /gnu
parent83cd6d12e2253dfb0092a448c1c7fd3284acde9c (diff)
gnu: python-pytest-django: Enable tests.
* gnu/packages/django.scm (python-pytest-django)[arguments]: Remove '#:tests? #f'. <#:phases>: Do not override the 'check' phase. [native-inputs]: Add python-django. Change-Id: Ib9ba756a12f3c727744c0fd565bd30da2276da5a
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/django.scm23
1 files changed, 1 insertions, 22 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index aa75bda685b..3e71960525f 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -438,29 +438,8 @@ size and quality.")
(base32
"14br4bzx07yxrx6xsyyhlpjgb0sz6lflbw90g87cn0z13qd18jd9"))))
(build-system pyproject-build-system)
- (arguments
- ;; The test suite is disabled because there are many test failures (see:
- ;; https://github.com/pytest-dev/pytest-django/issues/943).
- `(#:tests? #f
- #:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? inputs outputs #:allow-other-keys)
- (if tests?
- (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
- (list python-setuptools python-setuptools-scm python-wheel))
+ (list python-django python-setuptools python-setuptools-scm python-wheel))
(propagated-inputs
(list python-pytest))
(home-page "https://pytest-django.readthedocs.io/")