From c3df4dd0520a758837e8d9c51d408efc4d8e6a28 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 31 Aug 2011 00:00:12 -0700 Subject: [PATCH] Create a tox config for automating tests for different Python versions. To use: sudo pip install tox tox --- .gitignore | 2 ++ sleekxmpp/test/sleektest.py | 3 --- tox.ini | 5 +++++ 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index 986d721..9b7733b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ dist/ MANIFEST docs/_build/ *.swp +.tox/ +.coverage diff --git a/sleekxmpp/test/sleektest.py b/sleekxmpp/test/sleektest.py index bfc5a72..0f35e28 100644 --- a/sleekxmpp/test/sleektest.py +++ b/sleekxmpp/test/sleektest.py @@ -58,9 +58,6 @@ class SleekTest(unittest.TestCase): unittest.TestCase.__init__(self, *args, **kwargs) self.xmpp = None - def runTest(self): - pass - def parse_xml(self, xml_string): try: xml = ET.fromstring(xml_string) diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..8576f4e --- /dev/null +++ b/tox.ini @@ -0,0 +1,5 @@ +[tox] +envlist = py26,py27,py31,py32 +[testenv] +deps = nose +commands = nosetests --where=tests --exclude=live -i sleektest.py