summaryrefslogtreecommitdiffstats
path: root/python/mock/README
diff options
context:
space:
mode:
author David Spencer <baildon.research@googlemail.com>2018-05-31 21:59:14 +0100
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2018-06-02 07:32:35 +0700
commit1d01a46b1931606bb4ae783c202374e9a292b16c (patch)
treef7a436bb66f7b30c24c9ccf8ff63d4bdc9c83726 /python/mock/README
parentc085480417652a283ff498f10cb2f684edbfe7cb (diff)
downloadslackbuilds-1d01a46b1931606bb4ae783c202374e9a292b16c.tar.gz
slackbuilds-1d01a46b1931606bb4ae783c202374e9a292b16c.tar.xz
python/mock: Updated for version 2.0.0 + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'python/mock/README')
-rw-r--r--python/mock/README15
1 files changed, 7 insertions, 8 deletions
diff --git a/python/mock/README b/python/mock/README
index 78559c943f..448beb6f81 100644
--- a/python/mock/README
+++ b/python/mock/README
@@ -1,10 +1,9 @@
-mock implements a Mocking and Testing Library in Python
+mock (unit test library for Python 2)
-mock is a Python module that provides a core Mock class. It removes
-the need to create a host of stubs throughout your test suite.
-The mock module also provides a patch() decorator that handles
-patching module and class level attributes within the scope of a
-test, along with sentinel for creating unique objects.
-mock is tested on Python versions 2.4-2.7 and Python 3.
+mock is a library for testing in Python 2. It allows you to replace parts of
+your system under test with mock objects, and to make assertions about how they
+have been used.
-This is required by tahoe-lafs
+IMPORTANT: For Python3 you do not need this module. Please use the standard
+library instead (unittest.mock). This package contains a rolling backport of
+the standard library compatible with Python 2.7.