Enable pep8 H238 test
Enable H238 old style class declaration, use new style (inherit from `object`) Change-Id: I4d11e398a008bcb1b22ecc0b6b2df41c1abae6d5
This commit is contained in:
parent
47cbec7ff5
commit
623c704312
|
@ -211,23 +211,23 @@ def fake_headers():
|
||||||
'User-Agent': 'python-heatclient'}
|
'User-Agent': 'python-heatclient'}
|
||||||
|
|
||||||
|
|
||||||
class FakeServiceCatalog():
|
class FakeServiceCatalog(object):
|
||||||
def url_for(self, endpoint_type, service_type):
|
def url_for(self, endpoint_type, service_type):
|
||||||
return 'http://192.168.1.5:8004/v1/f14b41234'
|
return 'http://192.168.1.5:8004/v1/f14b41234'
|
||||||
|
|
||||||
|
|
||||||
class FakeKeystone():
|
class FakeKeystone(object):
|
||||||
service_catalog = FakeServiceCatalog()
|
service_catalog = FakeServiceCatalog()
|
||||||
|
|
||||||
def __init__(self, auth_token):
|
def __init__(self, auth_token):
|
||||||
self.auth_token = auth_token
|
self.auth_token = auth_token
|
||||||
|
|
||||||
|
|
||||||
class FakeRaw():
|
class FakeRaw(object):
|
||||||
version = 110
|
version = 110
|
||||||
|
|
||||||
|
|
||||||
class FakeHTTPResponse():
|
class FakeHTTPResponse(object):
|
||||||
|
|
||||||
version = 1.1
|
version = 1.1
|
||||||
|
|
||||||
|
|
|
@ -160,7 +160,7 @@ TEST_VERSIONS = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class FakeStdout:
|
class FakeStdout(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.content = []
|
self.content = []
|
||||||
|
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -42,7 +42,7 @@ commands=
|
||||||
downloadcache = ~/cache/pip
|
downloadcache = ~/cache/pip
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = E123,E126,E128,E241,E265,E713,H202,H238
|
ignore = E123,E126,E128,E241,E265,E713,H202
|
||||||
show-source = True
|
show-source = True
|
||||||
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build
|
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build
|
||||||
max-complexity=20
|
max-complexity=20
|
||||||
|
|
Loading…
Reference in New Issue