mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-09 04:40:06 -05:00
gnu: python-requests-unixsocket: Fix tests.
* gnu/packages/python-web.scm (python-requests-unixsocket)[arguments]: Do not run tests with --pep8 option; only run tests when enabled.
This commit is contained in:
parent
b67013c8ca
commit
3eeae68af1
1 changed files with 7 additions and 3 deletions
|
@ -2559,9 +2559,13 @@ (define-public python-requests-unixsocket
|
|||
(substitute* "test-requirements.txt"
|
||||
(("(.*)==(.*)" _ name) (string-append name "\n")))))
|
||||
(replace 'check
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(add-installed-pythonpath inputs outputs)
|
||||
(invoke "pytest" "-vv"))))))
|
||||
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
||||
;; Avoid a deprecation error.
|
||||
(substitute* "pytest.ini"
|
||||
(("--pep8") ""))
|
||||
(when tests?
|
||||
(add-installed-pythonpath inputs outputs)
|
||||
(invoke "pytest" "-vv")))))))
|
||||
(propagated-inputs
|
||||
`(("python-pbr" ,python-pbr)
|
||||
("python-requests" ,python-requests)
|
||||
|
|
Loading…
Reference in a new issue