declare the test as a static method to make the code analyzing tool happy.

This commit is contained in:
Oleksii Kliukin
2016-01-26 16:07:17 +01:00
parent aa350b7139
commit c9de062ef5
+1
View File
@@ -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()