diff --git a/tests/test_git_config.py b/tests/test_git_config.py index 0df38430..63c148f3 100644 --- a/tests/test_git_config.py +++ b/tests/test_git_config.py @@ -200,7 +200,3 @@ class GitConfigReadWriteTests(unittest.TestCase): for key, value in TESTS: self.assertEqual(sync_data[f'{git_config.SYNC_STATE_PREFIX}{key}'], value) self.assertTrue(sync_data[f'{git_config.SYNC_STATE_PREFIX}main.synctime']) - - -if __name__ == '__main__': - unittest.main() diff --git a/tests/test_git_superproject.py b/tests/test_git_superproject.py index 0bb77185..1425f4ce 100644 --- a/tests/test_git_superproject.py +++ b/tests/test_git_superproject.py @@ -366,7 +366,3 @@ class SuperprojectTestCase(unittest.TestCase): 'revision="52d3c9f7c107839ece2319d077de0cd922aa9d8f"/>' '' '') - - -if __name__ == '__main__': - unittest.main() diff --git a/tests/test_git_trace2_event_log.py b/tests/test_git_trace2_event_log.py index 7eb5178a..7e7dfb7a 100644 --- a/tests/test_git_trace2_event_log.py +++ b/tests/test_git_trace2_event_log.py @@ -385,7 +385,3 @@ class EventLogTestCase(unittest.TestCase): # Check for 'start' event specific fields. self.assertIn('argv', start_event) self.assertIsInstance(start_event['argv'], list) - - -if __name__ == '__main__': - unittest.main() diff --git a/tests/test_wrapper.py b/tests/test_wrapper.py index 372dfcf2..2a0e542b 100644 --- a/tests/test_wrapper.py +++ b/tests/test_wrapper.py @@ -553,7 +553,3 @@ class CheckRepoRev(GitCheckoutTestCase): rrev, lrev = self.wrapper.check_repo_rev(self.GIT_DIR, 'stable', repo_verify=False) self.assertEqual('refs/heads/stable', rrev) self.assertEqual(self.REV_LIST[1], lrev) - - -if __name__ == '__main__': - unittest.main()