Fix some pep8 errors
./muranodashboard/tests/test_fields.py:41:40: E241 multiple spaces after ',' ./muranodashboard/tests/test_fields.py:57:40: E241 multiple spaces after ',' ./muranodashboard/tests/unit/environments/test_api.py:276:48: E226 missing whitespace around arithmetic operator ./muranodashboard/tests/unit/dynamic_ui/test_helpers.py:51:13: E123 closing bracket does not match indentation of opening bracket's line Change-Id: I961a3b6c1bee641466388416c3bf7c65458fda1e
This commit is contained in:
parent
8726d02eb7
commit
9be17de566
|
@ -38,7 +38,7 @@ class TestFlavorField(helpers.APIMockTestCase):
|
|||
mock_nova.novaclient().flavors.list.return_value = [
|
||||
FlavorFlave('id1', 'small', vcpus=1, disk=50, ram=1000),
|
||||
FlavorFlave('id2', 'medium', vcpus=2, disk=100, ram=2000),
|
||||
FlavorFlave('id3', 'large', vcpus=3, disk=750, ram=4000)]
|
||||
FlavorFlave('id3', 'large', vcpus=3, disk=750, ram=4000)]
|
||||
|
||||
f = fields.FlavorChoiceField()
|
||||
initial_request = {}
|
||||
|
@ -54,7 +54,7 @@ class TestFlavorField(helpers.APIMockTestCase):
|
|||
|
||||
mock_nova.novaclient().flavors.list.return_value = [
|
||||
FlavorFlave('id2', 'medium', vcpus=2, disk=100, ram=2000),
|
||||
FlavorFlave('id3', 'large', vcpus=3, disk=750, ram=4000)]
|
||||
FlavorFlave('id3', 'large', vcpus=3, disk=750, ram=4000)]
|
||||
|
||||
f = fields.FlavorChoiceField(requirements={'min_vcpus': 2})
|
||||
f.update({}, self.request)
|
||||
|
|
|
@ -47,8 +47,7 @@ class TestHelper(testtools.TestCase):
|
|||
def test_insert_hidden_ids(self):
|
||||
app_dict = {'?': {
|
||||
'type': 'test.App',
|
||||
'id': '123'
|
||||
}
|
||||
'id': '123'}
|
||||
}
|
||||
app_list = [1, 2, 3, 4]
|
||||
|
||||
|
|
|
@ -273,7 +273,7 @@ class TestEnvironmentsAPI(helpers.APIMockTestCase):
|
|||
mock_client = mock_api.muranoclient(mock.Mock())
|
||||
mock_client.environments.get.return_value = mock_env
|
||||
mock_client.environments.last_status.return_value = {
|
||||
'foo_service': mock.Mock(text='foo'*100,
|
||||
'foo_service': mock.Mock(text='foo' * 100,
|
||||
updated='foo_time'),
|
||||
'bar_service': None
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue