Merge "Removed unnecessary setUp calls in tests"

This commit is contained in:
Jenkins
2017-08-11 09:15:01 +00:00
committed by Gerrit Code Review
10 changed files with 1 additions and 29 deletions

View File

@@ -25,9 +25,6 @@ from watcher.tests import base
@mock.patch.object(clients.OpenStackClients, 'cinder')
class TestCinderHelper(base.TestCase):
def setUp(self):
super(TestCinderHelper, self).setUp()
@staticmethod
def fake_storage_node(**kwargs):
node = mock.MagicMock()

View File

@@ -45,9 +45,6 @@ class DummyManager(object):
class TestServiceHeartbeat(base.TestCase):
def setUp(self):
super(TestServiceHeartbeat, self).setUp()
@mock.patch.object(objects.Service, 'list')
@mock.patch.object(objects.Service, 'create')
def test_send_beat_with_creating_service(self, mock_create,