testfixtures 4.8.0 Released!
chris at simplistix.co.uk
Tue Feb 2 10:44:20 EST 2016
I'm pleased to announce the release of testfixtures 4.8.0 featuring the
- More succinct mocking with Replacer:
For setUp usage:
replace = Replacer()
For one-shot context manager usage:
with Replace('x.y.z', Mock()) as the_mock:
Multi-replace context manager usage:
with Replacer() as replace:
dt = replace('x.y.z.datetime', test_datetime())
mock = replace('x.y.do_it', Mock())
- Two context managers for testing warnings:
... code that should raise no warnings ...
The package is on PyPI and a full list of all the links to docs, issue
trackers and the like can be found here:
Any questions, please do ask on the Testing in Python list or on the
Simplistix open source mailing list...
Simplistix - Content Management, Batch Processing & Python Consulting
More information about the Python-list