TG-103 edit tox and manage

This commit is contained in:
2017-01-27 04:52:23 +01:00
parent 9d89435132
commit 143fdeefac
3 changed files with 4 additions and 2 deletions

View File

@ -76,6 +76,8 @@ manager.add_command('checkdb', CheckDB())
class RunTests(Command):
"""Seed the db """
def run(self):
if not args.test:
raise Exception("Les tests doivent etre lancés en config de test")
test_loader = unittest.defaultTestLoader
test_runner = unittest.TextTestRunner()
test_suite = test_loader.discover('tests')