Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fuchsia.googlesource.com-third_party-python-testing-cabal-mock
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fuchsia-mirror
fuchsia.googlesource.com-third_party-python-testing-cabal-mock
Commits
8f119eef
Commit
8f119eef
authored
14 years ago
by
Michael Foord
Browse files
Options
Downloads
Patches
Plain Diff
README changes for 0.7.0 release
parent
166ba110
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.txt
+8
-5
8 additions, 5 deletions
README.txt
with
8 additions
and
5 deletions
README.txt
+
8
−
5
View file @
8f119eef
...
@@ -9,11 +9,15 @@ mock is tested on Python versions 2.4-2.7 and Python 3.
...
@@ -9,11 +9,15 @@ mock is tested on Python versions 2.4-2.7 and Python 3.
The mock module also provides utility functions / objects to assist with
The mock module also provides utility functions / objects to assist with
testing, particularly monkey patching.
testing, particularly monkey patching.
* `PDF documentation for 0.7.0 <http://www.voidspace.org.uk/downloads/mock-0.7.0.pdf>`_
* `PDF documentation for 0.7.0
* `mock on google code (repository and issue tracker) <http://code.google.com/p/mock/>`_
<http://www.voidspace.org.uk/downloads/mock-0.7.0.pdf>`_
* `mock documentation <http://www.voidspace.org.uk/python/mock/>`_
* `mock on google code (repository and issue tracker)
<http://code.google.com/p/mock/>`_
* `mock documentation
<http://www.voidspace.org.uk/python/mock/>`_
* `mock on PyPI <http://pypi.python.org/pypi/mock/>`_
* `mock on PyPI <http://pypi.python.org/pypi/mock/>`_
* `Mailing list (testing-in-python@lists.idyll.org) <http://lists.idyll.org/listinfo/testing-in-python>`_
* `Mailing list (testing-in-python@lists.idyll.org)
<http://lists.idyll.org/listinfo/testing-in-python>`_
Mock is very easy to use and is designed for use with
Mock is very easy to use and is designed for use with
`unittest <http://pypi.python.org/pypi/unittest2>`_. Mock is based on
`unittest <http://pypi.python.org/pypi/unittest2>`_. Mock is based on
...
@@ -79,7 +83,6 @@ mock (or other object) during the test and restored when the test ends::
...
@@ -79,7 +83,6 @@ mock (or other object) during the test and restored when the test ends::
decorators are applied). This means from the bottom up, so in the example
decorators are applied). This means from the bottom up, so in the example
above the mock for `test_module.ClassName2` is passed in first.
above the mock for `test_module.ClassName2` is passed in first.
With `patch` it matters that you patch objects in the namespace where they
With `patch` it matters that you patch objects in the namespace where they
are looked up. This is normally straightforward, but for a quick guide
are looked up. This is normally straightforward, but for a quick guide
read `where to patch
read `where to patch
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment