Fix pep8 E127 violations
Updated pep8 version requirement to 1.3.3
Fixed E127 errors
All ignores are to be removed in the next sequence of patches
Change-Id: I266498a2c64a215648a4a598b8cba5669049e37c
Reviewed-on: https://review.openstack.org/13384
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
diff --git a/tests/test_scheduler.py b/tests/test_scheduler.py
index cacf4a9..fd103c8 100644
--- a/tests/test_scheduler.py
+++ b/tests/test_scheduler.py
@@ -362,14 +362,17 @@
class FakeJenkinsEvent(object):
def __init__(self, name, number, parameters, phase, status=None):
- data = {'build':
- {'full_url': 'https://server/job/%s/%s/' % (name, number),
- 'number': number,
- 'parameters': parameters,
- 'phase': phase,
- 'url': 'job/%s/%s/' % (name, number)},
- 'name': name,
- 'url': 'job/%s/' % name}
+ data = {
+ 'build': {
+ 'full_url': 'https://server/job/%s/%s/' % (name, number),
+ 'number': number,
+ 'parameters': parameters,
+ 'phase': phase,
+ 'url': 'job/%s/%s/' % (name, number),
+ },
+ 'name': name,
+ 'url': 'job/%s/' % name,
+ }
if status:
data['build']['status'] = status
self.body = json.dumps(data)
@@ -810,7 +813,7 @@
def test_independent_queues(self):
"Test that changes end up in the right queues"
self.fake_jenkins.hold_jobs_in_build = True
- A = self.fake_gerrit.addFakeChange('org/project', 'master', 'A')
+ A = self.fake_gerrit.addFakeChange('org/project', 'master', 'A')
B = self.fake_gerrit.addFakeChange('org/project1', 'master', 'B')
C = self.fake_gerrit.addFakeChange('org/project2', 'master', 'C')
A.addApproval('CRVW', 2)
@@ -1117,13 +1120,18 @@
def test_post(self):
"Test that post jobs run"
- e = {"type": "ref-updated",
- "submitter": {"name": "User Name"},
- "refUpdate": {"oldRev":
- "90f173846e3af9154517b88543ffbd1691f31366",
- "newRev":
- "d479a0bfcb34da57a31adb2a595c0cf687812543",
- "refName": "master", "project": "org/project"}}
+ e = {
+ "type": "ref-updated",
+ "submitter": {
+ "name": "User Name",
+ },
+ "refUpdate": {
+ "oldRev": "90f173846e3af9154517b88543ffbd1691f31366",
+ "newRev": "d479a0bfcb34da57a31adb2a595c0cf687812543",
+ "refName": "master",
+ "project": "org/project",
+ }
+ }
self.fake_gerrit.addEvent(e)
self.waitUntilSettled()