This commit is contained in:
1 parent
81e70a58a9
commit
cf578836e1
1 file changed
+2
-4
@@ -1,11 +1,10 @@
|
||||
import argparse
|
||||
from pathlib import Path
|
||||
import sys
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
from serverlibrary import setup_logging
|
||||
|
||||
|
||||
TESTS_DIR = Path(__file__).resolve().parent
|
||||
PROJECT_DIR = TESTS_DIR.parent
|
||||
SOURCE_DIR = PROJECT_DIR / "src"
|
||||
@@ -29,7 +28,7 @@ def main() -> int:
|
||||
("unit", "integration") if args.suite == "all" else (args.suite,)
|
||||
)
|
||||
loader = unittest.TestLoader()
|
||||
runner = unittest.TextTestRunner(verbosity=2)
|
||||
runner = unittest.TextTestRunner(verbosity=2, descriptions=False)
|
||||
successful = True
|
||||
setup_logging("ERROR", logfile="test.log")
|
||||
for suite_name in suite_names:
|
||||
@@ -46,6 +45,5 @@ def main() -> int:
|
||||
|
||||
return 0 if successful else 1
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
Reference in new issue
Block a user