Skip to content
Myr

Use proper exception type and update changelog

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Adam Byrtek · committed by Markus Unterwaditzer · parent 6c5ef2b · Browse files · 3 files+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+5 added−1 removed

  • other:+5 added−1 removed

3 files+5 added−1 removed

modified:flask/testing.py+1 added-1 removed
35 unmodified lines
36 path += '?' + url.query3738 if json is not None:39 if 'data' in kwargs:40 raise RuntimeError('Client cannot provide both `json` and `data`')40 raise ValueError('Client cannot provide both `json` and `data`')41 kwargs['data'] = json_dumps(json)4243 # Only set Content-Type when not explicitly provided44 if 'content_type' not in kwargs:
96 unmodified lines
modified:AUTHORS+1 added
7 unmodified lines
89Patches and Suggestions10```````````````````````1112- Adam Byrtek13- Adam Zapletal14- Ali Afshar15- Chris Edgemon16- Chris Grindstaff
22 unmodified lines
modified:CHANGES+3 added
9 unmodified lines
10- Mimetype guessing for ``send_file`` has been removed, as per issue ``#104``.11 See pull request ``#1849``.12- Make ``flask.safe_join`` able to join multiple paths like ``os.path.join``13 (pull request ``#1730``).14- Added `json` keyword argument to :meth:`flask.testing.FlaskClient.open`15 (and related ``get``, ``post``, etc.), which makes it more convenient to16 send JSON requests from the test client.1718Version 0.11.219--------------20
572 unmodified lines