Commit d555574e authored by Pietro Saccardi's avatar Pietro Saccardi

Removing unittest.main from where it is not needed. Added verbosity.

parent 7b313fa7
Pipeline #188 passed with stage
in 5 minutes and 13 seconds
......@@ -177,7 +177,3 @@ class TestSettings(unittest.TestCase):
with tempfile.NamedTemporaryFile(delete=False) as temp_file:
path = temp_file.name
save_settings(path)
if __name__ == '__main__': # pragma: no cover
unittest.main()
......@@ -289,7 +289,3 @@ class TestPluginLookup(unittest.TestCase):
self.assertIsNone(table[123, Process.MAIN])
with self.assertRaises(KeyError):
_ = table[1, 2, 3]
if __name__ == '__main__': # pragma: no cover
unittest.main()
......@@ -37,7 +37,3 @@ class HandlersTestCase(unittest.TestCase):
_HANDLERS = 'SOME STRING'
# Dummy
TestHandlerClsFailing() # pragma: no cover
if __name__ == '__main__': # pragma: no cover
unittest.main()
......@@ -349,7 +349,3 @@ class TestBufferedRecorder(RatcamUnitTestCase):
self.assertLessEqual(max_footage_age, buffered_recorder.total_age)
self.assertLessEqual(max_buffer_age, max_sps_age)
self.assertLessEqual(max_footage_age, max_sps_age)
if __name__ == '__main__': # pragma: no cover
unittest.main()
......@@ -17,4 +17,4 @@ misc.cam_replay.PiCameraReplay.DEFAULT_TIME_FACTOR = 10.
if __name__ == '__main__': # pragma: no cover
unittest.main()
unittest.main(verbosity=2)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment