change test lauch

This commit is contained in:
vincent 2021-06-21 23:10:05 +02:00
parent 5f98a0a7bf
commit c9742115d3
3 changed files with 18 additions and 15 deletions

View File

@ -1,15 +1 @@
import unittest from .suite import suite
from . import base
from . import api
def suite():
suite = unittest.TestSuite()
suite.addTest(base.suite())
suite.addTest(api.suite())
return suite
if __name__ == "__main__":
runner = unittest.TextTestRunner()
runner.run(suite())

7
tests/__main__.py Normal file
View File

@ -0,0 +1,7 @@
import unittest
from .suite import suite
if __name__ == "__main__":
runner = unittest.TextTestRunner()
runner.verbosity = 3
runner.run(suite())

10
tests/suite.py Normal file
View File

@ -0,0 +1,10 @@
import unittest
from . import base
from . import api
def suite():
suite = unittest.TestSuite()
suite.addTest(base.suite())
suite.addTest(api.suite())
return suite