mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
gnu: django: Fix building python-django-allauth.
* gnu/packages/django.scm (python-django-allauth)[arguments]: Modify the standard phases to skip a test, and run the tests using django-admin with the settings configured.
This commit is contained in:
parent
7a45268935
commit
17dc2a0997
1 changed files with 20 additions and 0 deletions
|
@ -208,6 +208,26 @@ (define-public python-django-allauth
|
||||||
(base32
|
(base32
|
||||||
"1fslqc5qqb0b66yscvkyjwfv8cnbfx5nlkpnwimyb3pf1nc1w7r3"))))
|
"1fslqc5qqb0b66yscvkyjwfv8cnbfx5nlkpnwimyb3pf1nc1w7r3"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
|
(arguments
|
||||||
|
'(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
;; TODO: Tagging the tests requiring the web could be done upstream.
|
||||||
|
(add-before 'check 'skip-test-requiring-network-access
|
||||||
|
(lambda _
|
||||||
|
(substitute* "allauth/socialaccount/providers/openid/tests.py"
|
||||||
|
(("def test_login")
|
||||||
|
"from django.test import tag
|
||||||
|
@tag('requires-web')
|
||||||
|
def test_login"))))
|
||||||
|
(replace 'check
|
||||||
|
(lambda _
|
||||||
|
(setenv "DJANGO_SETTINGS_MODULE" "test_settings")
|
||||||
|
(zero? (system*
|
||||||
|
"django-admin"
|
||||||
|
"test"
|
||||||
|
"allauth"
|
||||||
|
"--verbosity=2"
|
||||||
|
"--exclude-tag=requires-web")))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python-openid" ,python-openid)
|
`(("python-openid" ,python-openid)
|
||||||
("python-requests" ,python-requests)
|
("python-requests" ,python-requests)
|
||||||
|
|
Loading…
Reference in a new issue