mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Test runner boiler plate; remove unused imports
This commit is contained in:
parent
242908c403
commit
5f0de59ab7
@ -1,7 +1,5 @@
|
||||
# Import python libs
|
||||
import os
|
||||
import sys
|
||||
import hashlib
|
||||
|
||||
# Import salt libs
|
||||
from saltunittest import TestLoader, TextTestRunner
|
||||
@ -72,3 +70,11 @@ class AliasesTest(integration.ModuleCase):
|
||||
'aliases.list_aliases')
|
||||
self.assertIsInstance(tgt_ret, dict)
|
||||
self.assertNotIn('alias=frank', tgt_ret)
|
||||
|
||||
if __name__ == "__main__":
|
||||
loader = TestLoader()
|
||||
tests = loader.loadTestsFromTestCase(AliasesTest)
|
||||
print('Setting up Salt daemons to execute tests')
|
||||
with TestDaemon():
|
||||
runner = TextTestRunner(verbosity=1).run(tests)
|
||||
sys.exit(runner.wasSuccessful())
|
||||
|
Loading…
Reference in New Issue
Block a user