Skip to content

Commit 8fbd547

Browse files
committed
release 2.3.0
* For the ``$ENVIRON`` and ``$RESPONSE`` :ref:`substitutions <state-substitution>` it is now possible to :ref:`cast <casting>` the value to a type of ``int``, ``float``, ``str``, or ``bool``. * The ``JSONHandler`` is now more strict about how it detects that a body content is JSON, avoiding some errors where the content-type header suggests JSON but the content cannot be decoded as such. * Better error message when content cannot be decoded. * Addition of the ``disable_response_handler`` test setting for those cases when the test author has no control over the content-type header and it is wrong.
1 parent fcd6a76 commit 8fbd547

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

docs/source/format.rst

+2
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ Any Previous Test
289289
difficult for humans to read. Take care to optimize for the
290290
maintainers that will come after you, not yourself.
291291

292+
.. _casting:
293+
292294
Casting
293295
*******
294296

docs/source/release.rst

+13
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ These are informal release notes for gabbi since version 1.0.0,
55
highlighting major features and changes. For more detail see
66
the `commit logs`_ on GitHub.
77

8+
2.3.0
9+
-----
10+
* For the ``$ENVIRON`` and ``$RESPONSE`` :ref:`substitutions <state-substitution>`
11+
it is now possible to :ref:`cast <casting>` the value to a type of ``int``,
12+
``float``, ``str``, or ``bool``.
13+
* The ``JSONHandler`` is now more strict about how it detects that a body
14+
content is JSON, avoiding some errors where the content-type header suggests
15+
JSON but the content cannot be decoded as such.
16+
* Better error message when content cannot be decoded.
17+
* Addition of the ``disable_response_handler`` test setting for those cases
18+
when the test author has no control over the content-type header and it is
19+
wrong.
20+
821
2.2.0
922
-----
1023

gabbi/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# under the License.
1313
"""See gabbi.driver and gabbbi.case."""
1414

15-
__version__ = '2.2.0'
15+
__version__ = '2.3.0'

0 commit comments

Comments
 (0)