diff options
author | Michael Foord <michael@voidspace.org.uk> | 2012-03-25 23:46:29 +0100 |
---|---|---|
committer | Michael Foord <michael@voidspace.org.uk> | 2012-03-25 23:46:29 +0100 |
commit | bba7e694799b88a9bbd0b434b404f899a7102c42 (patch) | |
tree | bd836f99d47177de55c0972ec4fdc75df660c96d | |
parent | 7b4dfa8aef73fb76736e117431a3f443884e231b (diff) | |
download | mock-bba7e694799b88a9bbd0b434b404f899a7102c42.tar.gz |
Changes for 1.0.0a1 release
-rw-r--r-- | docs/changelog.txt | 2 | ||||
-rw-r--r-- | docs/examples.txt | 11 | ||||
-rw-r--r-- | docs/index.txt | 4 | ||||
-rw-r--r-- | mock.py | 2 |
4 files changed, 4 insertions, 15 deletions
diff --git a/docs/changelog.txt b/docs/changelog.txt index de9ab0b..6f7af68 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -4,7 +4,7 @@ CHANGELOG ========= -2012/XX/XX Version 1.0.0 alpha 1 +2012/03/25 Version 1.0.0 alpha 1 -------------------------------- The standard library version! diff --git a/docs/examples.txt b/docs/examples.txt index 34b2196..d35dd45 100644 --- a/docs/examples.txt +++ b/docs/examples.txt @@ -823,17 +823,6 @@ With slightly more work you can also mock package imports: <Mock name='mock.module.fooble()' id='...'> >>> mock.module.fooble.assert_called_once_with() -Unfortunately it seems that using `patch.dict` as a test *decorator* on -`sys.modules` interferes with the way `nosetests -<http://somethingaboutorange.com/mrl/projects/nose/>`_ collects tests. -`nosetests` does some manipulation of `sys.modules` (along with `sys.path` -manipulation) and using `patch.dict` with `sys.modules` can cause it to not -find tests. Using `patch.dict` as a context manager, or using the -:ref:`start-and-stop`, work around this by taking a reference to `sys.modules` -inside the test rather than at import time. (Using `patch.dict` as a decorator -takes a *reference* to `sys.modules` at import time, it doesn't do the -patching until the test is executed though.) - Tracking order of calls and less verbose call assertions ======================================================== diff --git a/docs/index.txt b/docs/index.txt index 5374d7b..1d290f5 100644 --- a/docs/index.txt +++ b/docs/index.txt @@ -7,11 +7,11 @@ :Author: `Michael Foord <http://www.voidspace.org.uk/python/weblog/index.shtml>`_ :Version: |release| -:Date: 2012/02/13 +:Date: 2012/03/25 :Homepage: `Mock Homepage`_ :Download: `Mock on PyPI`_ :Documentation: `PDF Documentation - <http://www.voidspace.org.uk/downloads/mock-0.8.0.pdf>`_ + <http://www.voidspace.org.uk/downloads/mock-1.0.0a1.pdf>`_ :License: `BSD License`_ :Support: `Mailing list (testing-in-python@lists.idyll.org) <http://lists.idyll.org/listinfo/testing-in-python>`_ @@ -30,7 +30,7 @@ __all__ = ( ) -__version__ = '1.0alpha1' +__version__ = '1.0.0alpha1' import pprint |