mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-23 19:19:53 +00:00
Create a tox config for automating tests for different Python versions.
To use: sudo pip install tox tox
This commit is contained in:
parent
730c3fada0
commit
c3df4dd052
3 changed files with 7 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -4,3 +4,5 @@ dist/
|
||||||
MANIFEST
|
MANIFEST
|
||||||
docs/_build/
|
docs/_build/
|
||||||
*.swp
|
*.swp
|
||||||
|
.tox/
|
||||||
|
.coverage
|
||||||
|
|
|
@ -58,9 +58,6 @@ class SleekTest(unittest.TestCase):
|
||||||
unittest.TestCase.__init__(self, *args, **kwargs)
|
unittest.TestCase.__init__(self, *args, **kwargs)
|
||||||
self.xmpp = None
|
self.xmpp = None
|
||||||
|
|
||||||
def runTest(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def parse_xml(self, xml_string):
|
def parse_xml(self, xml_string):
|
||||||
try:
|
try:
|
||||||
xml = ET.fromstring(xml_string)
|
xml = ET.fromstring(xml_string)
|
||||||
|
|
5
tox.ini
Normal file
5
tox.ini
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[tox]
|
||||||
|
envlist = py26,py27,py31,py32
|
||||||
|
[testenv]
|
||||||
|
deps = nose
|
||||||
|
commands = nosetests --where=tests --exclude=live -i sleektest.py
|
Loading…
Reference in a new issue