Enable check for E124 rule

Fix E124 failures and enable check for E124

E124 closing bracket does not match visual indentation

Change-Id: Iec6af44362dcf613cfaccbccbe53de82aba51a6a
This commit is contained in:
Sergey Nikitin 2015-02-27 16:29:30 +03:00
parent 7a1066fb79
commit 53f0c5428f
4 changed files with 9 additions and 12 deletions

View File

@ -316,12 +316,10 @@ class ClientTest(utils.TestCase):
cs.http_log_debug = True
cs.http_log_req('GET', '/foo', {'headers': {}})
cs.http_log_req('GET', '/foo', {'headers':
{'X-Auth-Token': 'totally_bogus'}
})
{'X-Auth-Token': 'totally_bogus'}})
cs.http_log_req('GET', '/foo', {'headers':
{'X-Foo': 'bar',
'X-Auth-Token': 'totally_bogus'}
})
'X-Auth-Token': 'totally_bogus'}})
cs.http_log_req('GET', '/foo', {'headers': {},
'data':
'{"auth": {"passwordCredentials": '

View File

@ -97,8 +97,7 @@ class ClientTest(utils.TestCase):
headers = {"X-Auth-Token": "token",
"X-Auth-Project-Id": "project_id",
"User-Agent": cl.USER_AGENT,
'Accept': 'application/json',
}
'Accept': 'application/json'}
mock_request.assert_called_with(
"GET",
"http://example.com/hi",

View File

@ -45,7 +45,7 @@ downloadcache = ~/cache/pip
# Following checks are ignored on purpose.
#
# Additional checks are also ignored on purpose: F811, F821
ignore = E124,F811,F821,H404,H405
ignore = F811,F821,H404,H405
show-source = True
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build,doc/source/conf.py