Skip to content

Commit 4f49216

Browse files
authored
Merge branch 'master' into issue-517
2 parents 37c7c73 + b1e5d19 commit 4f49216

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

CHANGELOG.rst

+12
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ Releases prior to 0.3.0 were “best effort” filled out, but are missing
2525
some info. If you see your contribution missing info, please open a PR
2626
on the Changelog!
2727

28+
.. _section-1.1.1:
29+
1.1.0
30+
-----
31+
.. _bug_fixes-1.1.1
32+
Bug Fixes
33+
~~~~~~~~~
34+
35+
::
36+
37+
* Fixing test as HTTP Header MIMEAccept expects quality-factor number in form of `X.X` (#547) [chipndell]
38+
39+
2840
.. _section-1.1.0:
2941
1.1.0
3042
-----

tests/legacy/test_api_legacy.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_media_types_method(self, app, mocker):
108108
api = restx.Api(app)
109109

110110
with app.test_request_context(
111-
"/foo", headers={"Accept": "application/xml; q=.5"}
111+
"/foo", headers={"Accept": "application/xml; q=0.5"}
112112
):
113113
assert api.mediatypes_method()(mocker.Mock()) == [
114114
"application/xml",
@@ -119,7 +119,8 @@ def test_media_types_q(self, app):
119119
api = restx.Api(app)
120120

121121
with app.test_request_context(
122-
"/foo", headers={"Accept": "application/json; q=1, application/xml; q=.5"}
122+
"/foo",
123+
headers={"Accept": "application/json; q=1.0, application/xml; q=0.5"},
123124
):
124125
assert api.mediatypes() == ["application/json", "application/xml"]
125126

0 commit comments

Comments
 (0)