From: Harmon Date: Tue, 12 Jan 2021 18:14:56 +0000 (-0600) Subject: Improve formatting in API tests X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=043c6608b4ba8ac33d0e05f3e2202584465f3a6e;p=tweepy.git Improve formatting in API tests --- diff --git a/tests/test_api.py b/tests/test_api.py index 1115655..0fbfb16 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -407,7 +407,6 @@ class TweepyAPITests(TweepyTestCase): self.assertFalse(self.api.cached_result) - class TweepyCacheTests(unittest.TestCase): timeout = 0.5 memcache_servers = ['127.0.0.1:11211'] # must be running for test to pass @@ -453,5 +452,6 @@ class TweepyCacheTests(unittest.TestCase): if os.path.exists('cache_test_dir'): shutil.rmtree('cache_test_dir') + if __name__ == '__main__': unittest.main()