We need one patch on top of 0.3.8 for compatibility with Werkzeug 1.0. Taken from upstream: https://github.com/flask-restful/flask-restful/commit/73376a488907af3042b52678ac4c23f8a8911e5b diff --git a/tests/test_api.py b/tests/test_api.py index f7f8e661..6795d362 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -445,7 +445,9 @@ def test_handle_non_api_error(self): resp = app.get("/foo") self.assertEquals(resp.status_code, 404) - self.assertEquals('text/html', resp.headers['Content-Type']) + # in newer versions of werkzeug this is `text/html; charset=utf8` + content_type, _, _ = resp.headers['Content-Type'].partition(';') + self.assertEquals('text/html', content_type) def test_non_api_error_404_catchall(self): app = Flask(__name__) diff --git a/tests/test_reqparse.py b/tests/test_reqparse.py index 2f1fbedf..9776f17c 100644 --- a/tests/test_reqparse.py +++ b/tests/test_reqparse.py @@ -2,9 +2,9 @@ import unittest from mock import Mock, patch from flask import Flask -from werkzeug import exceptions, MultiDict +from werkzeug import exceptions from werkzeug.wrappers import Request -from werkzeug.datastructures import FileStorage +from werkzeug.datastructures import FileStorage, MultiDict from flask_restful.reqparse import Argument, RequestParser, Namespace import six import decimal guix/commit/gnu/packages/configuration-management.scm?id=7c06b0abfc0453c361aafaeaf1dda1678b2b744f'>commitdiff
path: root/gnu/packages/configuration-management.scm
AgeCommit message (Expand)Author
2023-06-21gnu: go-github-com-mattn-go-runewidth: Update to 0.0.14....* gnu/packages/golang.scm (go-github-com-mattn-go-runewidth): Update to 0.0.14. (go-github.com-mattn-go-runewidth): Remove, and change users to to refer to 'go-github-com-mattn-go-runewidth'. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Nguyễn Gia Phong
2023-02-07gnu: gopkg-in-errgo-fmt-errors: Rename to go-gopkg-in-errgo-fmt-errors....* gnu/packages/golang.scm (gopkg-in-errgo-fmt-errors): Rename to … (go-gopkg-in-errgo-fmt-errors): … this. * gnu/packages/configuration-management.scm (chezmoi)[native-inputs]: Update accordingly. Signed-off-by: Christopher Baines <mail@cbaines.net> Katherine Cox-Buday
2022-11-20gnu: Rename go-golang-org-colorful to go-github-com-lucasb-eyer-go-colorful....* gnu/packages/golang.scm (go-golang-org-colorful): Deprecate and rename to... (go-github-com-lucasb-eyer-go-colorful): ...this. (go-github-com-gdamore-tcell)[inputs]: Rename go-golang-org-colorful to go-github-com-lucasb-eyer-go-colorful. (go-github-com-muesli-termenv)[inputs]: Likewise. (go-github-com-charmbracelet-glamour)[inputs]: Likewise. (go-github-com-charmbracelet-bubbletea)[inputs]: Likewise. * gnu/packages/configuration-management.scm (chezmoi)[native-inputs]: Rename go-golang-org-colorful to go-github-com-lucasb-eyer-go-colorful. * gnu/packages/image-viewers.scm (pixterm)[inputs]: Likewise. Signed-off-by: Raghav Gururajan <rg@raghavgururajan.name> (unmatched-parenthesis