mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 14:50:19 +00:00
Add mock library to testing page
This commit is contained in:
+15
-1
@@ -1,5 +1,5 @@
|
||||
Testing Your Code
|
||||
=====================
|
||||
=================
|
||||
|
||||
Testing your code is very important.
|
||||
|
||||
@@ -248,3 +248,17 @@ the need to change any other code.
|
||||
`unittest2 <http://pypi.python.org/pypi/unittest2>`_
|
||||
|
||||
|
||||
mock
|
||||
----
|
||||
|
||||
mock is a library for testing in Python.
|
||||
|
||||
::
|
||||
|
||||
$ pip install mock
|
||||
|
||||
It allows you to replace parts of your system under test with mock objects and
|
||||
make assertions about how they have been used.
|
||||
|
||||
`mock <http://www.voidspace.org.uk/python/mock/>`_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user