--- tests/test_accept.py.orig 2015-11-13 12:06:18.914003153 +0100
+++ tests/test_accept.py 2015-11-13 12:04:42.786435117 +0100
@@ -121,26 +121,6 @@
assert_equals(res.content_type, 'text/plain')
- def test_accept_no_default_match_q0_not_acceptable(self):
- """
- q=0 should be considered NotAcceptable,
- but this depends on werkzeug >= 1.0 which is not yet released
- so this test is expected to fail until we depend on werkzeug >= 1.0
- """
- class Foo(flask_restful.Resource):
- def get(self):
- return "data"
-
- app = Flask(__name__)
- api = flask_restful.Api(app, default_mediatype=None)
-
- api.add_resource(Foo, '/')
-
- with app.test_client() as client:
- res = client.get('/', headers=[('Accept', 'application/json; q=0')])
- assert_equals(res.status_code, 406)
- assert_equals(res.content_type, 'application/json')
-
def test_accept_no_default_accept_highest_quality_of_two(self):
class Foo(flask_restful.Resource):
def get(self):