Merge "Fix PEP8 E265 errors"
This commit is contained in:
commit
58583b55ca
@ -251,16 +251,6 @@ class RESTApi(object):
|
|||||||
else:
|
else:
|
||||||
return response.json()
|
return response.json()
|
||||||
|
|
||||||
###hack this for keystone!!!
|
|
||||||
#data = body[response_key]
|
|
||||||
# NOTE(ja): keystone returns values as list as {'values': [ ... ]}
|
|
||||||
# unlike other services which just return the list...
|
|
||||||
#if isinstance(data, dict):
|
|
||||||
# try:
|
|
||||||
# data = data['values']
|
|
||||||
# except KeyError:
|
|
||||||
# pass
|
|
||||||
|
|
||||||
def set(self, url, data=None, response_key=None, **kwargs):
|
def set(self, url, data=None, response_key=None, **kwargs):
|
||||||
"""Update an object via a PUT request
|
"""Update an object via a PUT request
|
||||||
|
|
||||||
|
@ -693,7 +693,7 @@ class MigrateServer(command.Command):
|
|||||||
if utils.wait_for_status(
|
if utils.wait_for_status(
|
||||||
compute_client.servers.get,
|
compute_client.servers.get,
|
||||||
server.id,
|
server.id,
|
||||||
#callback=_show_progress,
|
callback=_show_progress,
|
||||||
):
|
):
|
||||||
sys.stdout.write('Complete\n')
|
sys.stdout.write('Complete\n')
|
||||||
else:
|
else:
|
||||||
|
@ -137,10 +137,6 @@ class TestRESTApi(utils.TestCase):
|
|||||||
user_agent=fake_user_agent,
|
user_agent=fake_user_agent,
|
||||||
)
|
)
|
||||||
gopher = api.request('GET', fake_url)
|
gopher = api.request('GET', fake_url)
|
||||||
#session_mock.return_value.headers.setdefault.assert_called_with(
|
|
||||||
# 'X-Auth-Token',
|
|
||||||
# fake_auth,
|
|
||||||
#)
|
|
||||||
session_mock.return_value.request.assert_called_with(
|
session_mock.return_value.request.assert_called_with(
|
||||||
'GET',
|
'GET',
|
||||||
fake_url,
|
fake_url,
|
||||||
|
@ -114,7 +114,8 @@ IDENTITY_PROVIDER = {
|
|||||||
'description': idp_description
|
'description': idp_description
|
||||||
}
|
}
|
||||||
|
|
||||||
#Assignments
|
# Assignments
|
||||||
|
|
||||||
ASSIGNMENT_WITH_PROJECT_ID_AND_USER_ID = {
|
ASSIGNMENT_WITH_PROJECT_ID_AND_USER_ID = {
|
||||||
'scope': {'project': {'id': project_id}},
|
'scope': {'project': {'id': project_id}},
|
||||||
'user': {'id': user_id},
|
'user': {'id': user_id},
|
||||||
|
@ -220,7 +220,6 @@ class TestVolumeCreate(TestVolume):
|
|||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
volume_fakes.volume_name,
|
volume_fakes.volume_name,
|
||||||
#volume_fakes.volume_description,
|
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
identity_fakes.user_id,
|
identity_fakes.user_id,
|
||||||
@ -296,7 +295,6 @@ class TestVolumeCreate(TestVolume):
|
|||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
volume_fakes.volume_name,
|
volume_fakes.volume_name,
|
||||||
#volume_fakes.volume_description,
|
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
identity_fakes.user_id,
|
identity_fakes.user_id,
|
||||||
|
2
tox.ini
2
tox.ini
@ -28,6 +28,6 @@ commands=
|
|||||||
python setup.py build_sphinx
|
python setup.py build_sphinx
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = E126,E202,W602,H302,H402,E265,H305,H307,H904
|
ignore = E126,E202,W602,H302,H402,H305,H307,H904
|
||||||
show-source = True
|
show-source = True
|
||||||
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools
|
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools
|
||||||
|
Loading…
Reference in New Issue
Block a user