From db3d2622bc587277716ece43a825a216e7592261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Mon, 16 May 2016 09:57:36 +0200 Subject: [PATCH] add CHANGELOG entry for the added mocker.stub() name parameter --- CHANGELOG.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8f1c383..e7375ed 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,3 +1,16 @@ +0.11.1 +------ + +* ``mocker.stub()`` now allows passing in the name for the constructed `Mock + `_ + 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 ------