[Pkg-mpd-commits] [python-mpd] 153/262: add note about testing
Simon McVittie
smcv at debian.org
Sun May 22 18:16:40 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 c3e19578ed373bf9863b279752a22d222e163bff
Author: Jörg Thalheim <joerg at higgsboson.tk>
Date: Sun Nov 25 13:07:18 2012 +0100
add note about testing
---
README.md | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 4162fee..3b6a6b4 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ The following features was added:
- support for the upcoming client-to-client protocol
- adding new commands of mpd v0.17 (seekcur, prio, prioid, config, searchadd,
searchaddpl)
- - remove of deprecated commands (volume)
+ - remove deprecated commands (volume)
- declare mpd commands explicit as method, so they are shown in ipython
- add unit tests
- documented API to add new commands (see Future Compatible)
@@ -206,8 +206,25 @@ self.client.remove_command("get_cover")
Known Issues
------------
-Currently python-mpd is **NOT** thread-safe. If you need to access the library from multiple threads, you have to either use [locks](http://docs.python.org/library/threading.html#lock-objects) or use one mpd client per thread.
+Currently python-mpd is **NOT** thread-safe.
+If you need to access the library from multiple threads,
+you have to either use [locks](http://docs.python.org/library/threading.html#lock-objects)
+or use one mpd client per thread.
+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)
+
+```
+$ TEST_MPD_HOST=localhost TEST_MPD_PORT=6600 python test.py
+```
+
+For python2.6 the module `unittest2` is needed:
+
+```
+$ pip install unittest2
+```
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