Release notes / Changelog¶
doublex 1.8.3¶
doublex 1.8.2¶
- Fixed issue 12.
returns_input()
now may manage several parameters. See test. - Fixed issue 21.
method_returning()
andmethod_raising()
are now spies. See test. - Fixed issue 22. See test.
delegates()
now accepts dictionaries. See test.
doublex 1.8¶
- NEW inline stubbing and mocking with
when()
andexpect_call()
. See doc and tests. - Added support for mocking properties. See doc and tests.
- Testing with tox for Python 2.6, 2.7, 3.2 and 3.3.
- Documentation now at http://python-doublex.readthedocs.org
doublex 1.7.2¶
doublex 1.7¶
- NEW
with_some_args()
matcher to specify just relevant argument values in spy assertions. See doc and tests. - NEW module level
set_default_behavior()
function to define behavior for non stubbed methods. Thanks to Eduardo Ferro. See doc and tests.
doublex 1.6.4¶
- Asynchronous spy assertion race condition bug fixed.
- Reading double attributes returns collaborator.class attribute values by default.
doublex 1.6.2¶
- Invocation stubbed return value is now stored.
- New low level spy API: double “calls” property provides access to invocations and their argument values. Each ‘call’ has an “args” sequence and “kargs dictionary”. This provides support to perform individual assertions and direct access to invocation argument values. (see test and doc).
doublex 1.6¶
doublex 1.5.1¶
This release includes support for asynchronous spy assertions. See this blog post for the time being, soon in the official documentation.
doublex/pyDoubles 1.5¶
Since this release, doublex supports the pyDoubles API by means a wrapper. See pyDoubles for details.
In most cases the only required change in your code is the import
sentence, that change from:
import pyDoubles.framework.*
to:
from doublex.pyDoubles import *
If you have problems migrating to the 1.5 release or migrating from pyDoubles to doublex, please ask for help in the discussion forum or in the issue tracker.