From c9de062ef5de8121b40e930b5f5b46e6f670e992 Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Tue, 26 Jan 2016 16:07:17 +0100 Subject: [PATCH] declare the test as a static method to make the code analyzing tool happy. --- tests/test_wale_restore.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_wale_restore.py b/tests/test_wale_restore.py index f353a4c9..e922a9db 100644 --- a/tests/test_wale_restore.py +++ b/tests/test_wale_restore.py @@ -92,6 +92,7 @@ class TestWALERestore(unittest.TestCase): with patch.object(self.wale_restore, 'create_replica_with_s3', MagicMock(return_value=0)): self.assertEqual(self.wale_restore.run(), 0) + @staticmethod def test_main(self): with patch('sys.exit', MagicMock(return_value=0)): main()