From 75d3a78d6d045bf6b3dabf8e54f91590521fcd32 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 20 Jun 2026 08:26:40 +0200 Subject: [PATCH] Remove unittest.main() (#12295) Remove unittest.main(). --- tests/unit/plugins/modules/test_logrotate.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/unit/plugins/modules/test_logrotate.py b/tests/unit/plugins/modules/test_logrotate.py index f428e6eac7..c8055f98dd 100644 --- a/tests/unit/plugins/modules/test_logrotate.py +++ b/tests/unit/plugins/modules/test_logrotate.py @@ -945,7 +945,3 @@ class TestLogrotateConfig(unittest.TestCase): self.mock_module.run_command.assert_called_once() call_args = self.mock_module.run_command.call_args[0][0] self.assertEqual(call_args[0], test_logrotate_path) - - -if __name__ == "__main__": - unittest.main()