Enable pep8 E121/E122/E123 checking
Change-Id: I686f2b7895868e6ebaabe5d274e3efde2dd9c441
This commit is contained in:
@@ -236,12 +236,10 @@ class AlarmManagerTest(testtools.TestCase):
|
|||||||
self.assertEqual(alarms[0].alarm_id, 'alarm-id')
|
self.assertEqual(alarms[0].alarm_id, 'alarm-id')
|
||||||
|
|
||||||
def test_list_with_query(self):
|
def test_list_with_query(self):
|
||||||
alarms = list(self.mgr.list(q=[
|
alarms = list(self.mgr.list(q=[{"field": "project_id",
|
||||||
{"field": "project_id",
|
"value": "project-id"},
|
||||||
"value": "project-id"},
|
{"field": "name",
|
||||||
{"field": "name",
|
"value": "SwiftObjectAlarm"}]))
|
||||||
"value": "SwiftObjectAlarm"},
|
|
||||||
]))
|
|
||||||
expect = [
|
expect = [
|
||||||
('GET',
|
('GET',
|
||||||
'/v2/alarms?q.field=project_id&q.field=name&q.op=&q.op='
|
'/v2/alarms?q.field=project_id&q.field=name&q.op=&q.op='
|
||||||
|
|||||||
@@ -19,17 +19,17 @@ import ceilometerclient.v2.statistics
|
|||||||
base_url = '/v2/meters/instance/statistics'
|
base_url = '/v2/meters/instance/statistics'
|
||||||
qry = 'q.field=resource_id&q.field=source&q.op=&q.op=&q.value=foo&q.value=bar'
|
qry = 'q.field=resource_id&q.field=source&q.op=&q.op=&q.value=foo&q.value=bar'
|
||||||
period = '&period=60'
|
period = '&period=60'
|
||||||
samples = [{
|
samples = [
|
||||||
u'count': 135,
|
{u'count': 135,
|
||||||
u'duration_start': u'2013-02-04T10:51:42',
|
u'duration_start': u'2013-02-04T10:51:42',
|
||||||
u'min': 1.0,
|
u'min': 1.0,
|
||||||
u'max': 1.0,
|
u'max': 1.0,
|
||||||
u'duration_end':
|
u'duration_end':
|
||||||
u'2013-02-05T15:46:09',
|
u'2013-02-05T15:46:09',
|
||||||
u'duration': 1734.0,
|
u'duration': 1734.0,
|
||||||
u'avg': 1.0,
|
u'avg': 1.0,
|
||||||
u'sum': 135.0,
|
u'sum': 135.0},
|
||||||
}]
|
]
|
||||||
fixtures = {
|
fixtures = {
|
||||||
base_url:
|
base_url:
|
||||||
{
|
{
|
||||||
|
|||||||
2
tox.ini
2
tox.ini
@@ -24,6 +24,6 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = E121,E122,E123,E128,E711,E721,E712,H233,H302
|
ignore = E128,E711,E721,E712,H233,H302
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user