~ruther/guix-local

69c788282f7006a386a31ff6e4e97493311190dc — Sharlatan Hellseher 4 months ago 92c7757
gnu: python-pyquery: Skip more tests.

* gnu/packages/python-xyz.scm (python-pyquery)[arguments] <test-flags>:
Refactor skipped tests to use "--deselect" option and add 6 more items to
the list.

Change-Id: Ic006521b36ae3494dfa88c25fcbffc11a32494dc
1 files changed, 17 insertions(+), 2 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +17 -2
@@ 20710,8 20710,23 @@ project template.")
         "1brg6aawb9m5mdfmc6g7v5r6pczbx67r4l9cn5yh6bdi0qkvp501"))))
    (build-system pyproject-build-system)
    (arguments
     ;; This test requires network access.
     (list #:test-flags #~(list "-k" "not test_get")))
     (list
      #:test-flags
      #~(list #$@(map (lambda (test) (string-append
                                      "--deselect=tests/test_pyquery.py::"
                                      test))
                      (list
                       ;; AssertionError: 'REQUEST_METHOD: POST' not found in ''
                       "TestWebScrapping::test_post"
                       ;; AssertionError: 'HTTP_X_FOO: bar' not found in ''
                       "TestWebScrapping::test_session"
                       ;; Assertion is not equal.
                       "TestManipulating::test_val_for_textarea"
                       "TestHTMLParser::test_replaceWith"
                       "TestHTMLParser::test_replaceWith_with_function"
                       ;; Network access is required.
                       "TestWebScrapping::test_get"
                       "TestWebScrappingEncoding::test_get")))))
    (native-inputs
     (list python-pytest
           python-pytest-cov