Archived
1
0
Fork 0

gnu: python-warcio: Fix test failure.

* gnu/packages/python-web.scm (python-warcio)[arguments]: Invoke pytest
directly instead of going through setup.py.  Skip three more tests.
This commit is contained in:
Marius Bakke 2022-02-14 23:34:16 +01:00
parent d21a7695e6
commit b5f7140151
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -5254,16 +5254,22 @@ them to a designated prefix.")
"11afr6zy3r6rda81010iq496dazg4xid0izg3smg6ighpmvsnzf2")))) "11afr6zy3r6rda81010iq496dazg4xid0izg3smg6ighpmvsnzf2"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
(add-after 'unpack 'skip-problematic-tests #~(modify-phases %standard-phases
(lambda _ (replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv"
;; These tests fail due to networking requirements. ;; These tests fail due to networking requirements.
(substitute* "setup.py" "-k" (format #f "not ~a"
(("pytest.main\\(\\[" all) (string-join
(string-append all "'-k', '" '("test_post_chunked"
(string-append "not test_post_chunked and " "test_remote"
"not test_remote") "'")))))))) "test_capture_http_proxy"
"test_capture_https_proxy"
"test_capture_https_proxy_same_session")
" and not ")))))))))
(native-inputs (native-inputs
;; These inputs are required for the test suite. ;; These inputs are required for the test suite.
(list python-httpbin python-pytest-cov python-requests (list python-httpbin python-pytest-cov python-requests