mirror of
https://github.com/nikdoof/python-ts3.git
synced 2025-12-17 03:49:25 +00:00
Add testing requirements and update tests to unittest2.
This commit is contained in:
1
setup.py
1
setup.py
@@ -14,6 +14,7 @@ setup(
|
|||||||
packages=['ts3'],
|
packages=['ts3'],
|
||||||
scripts=['examples/gents3privkey.py'],
|
scripts=['examples/gents3privkey.py'],
|
||||||
test_suite='ts3.test.suite',
|
test_suite='ts3.test.suite',
|
||||||
|
test_require=['unittest2'],
|
||||||
|
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'License :: OSI Approved :: BSD License',
|
'License :: OSI Approved :: BSD License',
|
||||||
|
|||||||
13
ts3/test.py
13
ts3/test.py
@@ -1,7 +1,8 @@
|
|||||||
import unittest
|
import unittest2
|
||||||
from .protocol import TS3Proto
|
from ts3.protocol import TS3Proto
|
||||||
|
|
||||||
class TS3ProtoTest(unittest.TestCase):
|
|
||||||
|
class TS3ProtoTest(unittest2.TestCase):
|
||||||
""" Tests the TS3Proto class """
|
""" Tests the TS3Proto class """
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
@@ -66,9 +67,9 @@ class TS3ProtoTest(unittest.TestCase):
|
|||||||
|
|
||||||
|
|
||||||
def suite():
|
def suite():
|
||||||
suite = unittest.TestSuite()
|
suite = unittest2.TestSuite()
|
||||||
suite.addTest(unittest.makeSuite(TS3ProtoTest))
|
suite.addTest(unittest2.makeSuite(TS3ProtoTest))
|
||||||
return suite
|
return suite
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest2.main()
|
||||||
|
|||||||
Reference in New Issue
Block a user