Fix flake8 issues

Fix some flake8/hacking issues
This commit is contained in:
Joe Gordon 2013-09-18 15:27:12 -07:00
parent aad45d5dc7
commit 5727c12482
3 changed files with 33 additions and 4 deletions

View File

@ -1,5 +1,20 @@
#!/usr/bin/env python
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import gerritlib.gerrit
from pyelasticsearch import ElasticSearch

View File

@ -1,5 +1,19 @@
import testtools
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import elasticRecheck
import testtools
class TestClassifier(testtools.TestCase):
@ -16,7 +30,7 @@ class TestClassifier(testtools.TestCase):
self.classifier.last_failures()
def test_ready(self):
self.classifier._wait_till_ready('30043', '34','BLAH http://logs.openstack.org/43/30043/34/check/gate-tempest-devstack-vm-full/b852a33')
self.classifier._wait_till_ready('30043', '34', 'BLAH http://logs.openstack.org/43/30043/34/check/gate-tempest-devstack-vm-full/b852a33')
def test_classify(self):
bug_number = self.classifier.classify('43258', '13',
@ -27,4 +41,3 @@ class TestClassifier(testtools.TestCase):
url = self.classifier._prep_url('http://logs.openstack.org/13/46613/2/check/gate-tempest-devstack-vm-full/864bf44/console.html')
self.assertEqual(url,
'http://logs.openstack.org/13/46613/2/check/gate-tempest-devstack-vm-full/864bf44')

View File

@ -1,4 +1,5 @@
[flake8]
# H803 Skipped on purpose
# E501 skipped temporarily
ignore = E123,E126,E128,H803
ignore = E123,E126,E128,E501,H803