Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

version bump and notes

  • Loading branch information...
commit c6cddd4c7b1fbbca38a1d17c913e187456dacc93 1 parent c4e3c94
@gfxmonk authored
Showing with 12 additions and 2 deletions.
  1. +11 −1 README.markdown
  2. +1 −1  setup.py
View
12 README.markdown
@@ -1,4 +1,4 @@
-## mocktest (version 0.2)
+## mocktest (version 0.3)
... is a powerful and easy-to-use mocking library, inspired by rspec and
similar in many ways to Michael Foord's popular Mock module.
@@ -19,6 +19,16 @@ Issues / discussion:
Cheese shop entry:
[http://pypi.python.org/pypi/mocktest](http://pypi.python.org/pypi/mocktest/0.1)
+### Important notes for this version
+
+In mocktest 0.3, a few key objects and attributes have been renamed:
+
+ - the `mock_wrapper()` function is now just called `mock()`
+ - to get a raw mock from a mock wrapper, you now use `.raw` instead of `.mock`
+
+To sum up, where you would previously use `mock_wrapper().mock` you now would
+use `mock().raw`. The new names are more concise and less confusing to new users.
+
### Where did it come from?
I am a big fan of rspec, but less of a fan of ruby as a whole.
I wanted a to use rspec's powerful `should_receive()` and associated matchers
View
2  setup.py
@@ -4,7 +4,7 @@
setup(
name='mocktest',
- version='0.2.2',
+ version='0.3.0',
description='a mocking and expectation test library for python, inspired by rspec',
author='Tim Cuthbertson',
author_email='tim3d.junk+mocktest@gmail.com',
Please sign in to comment.
Something went wrong with that request. Please try again.