Skip to content

Commit

Permalink
release 2.3.0
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
cdent committed Sep 3, 2021
1 parent fcd6a76 commit 8fbd547
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/source/format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ Any Previous Test
difficult for humans to read. Take care to optimize for the
maintainers that will come after you, not yourself.

.. _casting:

Casting
*******

Expand Down
13 changes: 13 additions & 0 deletions docs/source/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ These are informal release notes for gabbi since version 1.0.0,
highlighting major features and changes. For more detail see
the `commit logs`_ on GitHub.

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.

2.2.0
-----

Expand Down
2 changes: 1 addition & 1 deletion gabbi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# under the License.
"""See gabbi.driver and gabbbi.case."""

__version__ = '2.2.0'
__version__ = '2.3.0'

0 comments on commit 8fbd547

Please sign in to comment.