Easier and more self documenting patterns for loading/saving Persistent
[python_utils.git] / tests / run_some_dependencies_test.py
index 1182f23d33b7eed38705860be639e3508df4f435..5725853774e66fc5a8f2c75a83ff8778f8dd3c7a 100755 (executable)
@@ -1,5 +1,7 @@
 #!/usr/bin/env python3
 
+# © Copyright 2021-2022, Scott Gasch
+
 """This is a "test" that just runs a few system utilities that have
 dependencies on this library in "do nothing" mode and makes sure they
 exit cleanly.
@@ -8,7 +10,6 @@ exit cleanly.
 
 import logging
 import unittest
-from typing import Optional
 
 import bootstrap
 import exec_utils
@@ -20,6 +21,7 @@ logger = logging.getLogger(__name__)
 class RunSomeDependenciesTest(unittest.TestCase):
     def test_make_sure_random_utilities_still_seem_to_work(self):
         commands = [
+            "echo your mom | indent_and_wrap.py --indent=2 --align=CENTER >& /dev/null",
             "/home/scott/cron/manage_lights.py -n --run_profiler >& /dev/null",
             "/home/scott/bin/reminder.py --logging_level=DEBUG >& /dev/null",
             "/home/scott/bin/wordle.py --mode=AUTOPLAY --template=trial >& /dev/null",
@@ -31,7 +33,7 @@ class RunSomeDependenciesTest(unittest.TestCase):
         ]
         for command in commands:
             try:
-                ret = exec_utils.cmd_with_timeout(command, 10.0)
+                ret = exec_utils.cmd_exitcode(command, 25.0)
                 self.assertEqual(0, ret)
             except Exception as e:
                 logger.exception(e)