mirror of
https://github.com/nikdoof/python-ts3.git
synced 2025-12-16 19:42:22 +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'],
|
||||
scripts=['examples/gents3privkey.py'],
|
||||
test_suite='ts3.test.suite',
|
||||
test_require=['unittest2'],
|
||||
|
||||
classifiers=[
|
||||
'License :: OSI Approved :: BSD License',
|
||||
|
||||
13
ts3/test.py
13
ts3/test.py
@@ -1,7 +1,8 @@
|
||||
import unittest
|
||||
from .protocol import TS3Proto
|
||||
import unittest2
|
||||
from ts3.protocol import TS3Proto
|
||||
|
||||
class TS3ProtoTest(unittest.TestCase):
|
||||
|
||||
class TS3ProtoTest(unittest2.TestCase):
|
||||
""" Tests the TS3Proto class """
|
||||
|
||||
def setUp(self):
|
||||
@@ -66,9 +67,9 @@ class TS3ProtoTest(unittest.TestCase):
|
||||
|
||||
|
||||
def suite():
|
||||
suite = unittest.TestSuite()
|
||||
suite.addTest(unittest.makeSuite(TS3ProtoTest))
|
||||
suite = unittest2.TestSuite()
|
||||
suite.addTest(unittest2.makeSuite(TS3ProtoTest))
|
||||
return suite
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
unittest2.main()
|
||||
|
||||
Reference in New Issue
Block a user