[Pkg-mpd-commits] [python-mpd] 162/262: README.md update testing instructions
Simon McVittie
smcv at debian.org
Sun May 22 18:16:42 UTC 2016
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch upstream
in repository python-mpd.
commit 095eeb2a472d5779cb0398d35a96c2d7c3da466f
Author: Jörg Thalheim <joerg at higgsboson.tk>
Date: Wed Dec 12 20:44:13 2012 +0100
README.md update testing instructions
---
README.md | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 79804cc..bec4db4 100644
--- a/README.md
+++ b/README.md
@@ -214,19 +214,25 @@ Take a look at examples/locking.py for further informations.
Testing
-------
-To run the unit tests with python 2.7 and higher just use:
-(replace TEST_MPD_HOST and TEST_MPD_PORT with your settings)
+To run the unit tests you need the mock module:
```
-$ TEST_MPD_HOST=localhost TEST_MPD_PORT=6600 python test.py
+$ pip install mock
```
-For python2.6 the module `unittest2` is needed:
+For python2.6 the module `unittest2` is additionally needed:
```
$ pip install unittest2
```
+Because test suite use mocking, no real mpd server is needed.
+Just run:
+
+```
+$ python test.py
+```
+
Contacting the author
---------------------
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mpd/python-mpd.git
More information about the Pkg-mpd-commits
mailing list