Skip to content

Commit

Permalink
add CHANGELOG entry for the added mocker.stub() name parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jurko-gospodnetic committed May 16, 2016
1 parent 449e1b2 commit db3d262
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
0.11.1
------

* ``mocker.stub()`` now allows passing in the name for the constructed `Mock
<https://docs.python.org/3/library/unittest.mock.html#the-mock-class>`_
object instead of having to set it using the internal ``_mock_name`` attribute
directly. This is useful for debugging as the name is used in the mock's
``repr`` string as well as related assertion failure messages.
Thanks `@jurko-gospodnetic`_ for the PR (`#40`_).

.. _@jurko-gospodnetic: https://github.com/jurko-gospodnetic
.. _#40: https://github.com/pytest-dev/pytest-mock/issues/40

0.11.0
------

Expand Down

0 comments on commit db3d262

Please sign in to comment.