Revert "Fix pep8 E127 violations"
This reverts commit afd39bb3cd
This change should be rebased against the dev branch instead and
submitted there. Once the production CI freeze ends immediately
following the OpenStack Folsom release, dev changes will be merged back
into master.
Change-Id: Iabc1a0b287f0a433ca297a0d5cd1e21dd670e1d3
Reviewed-on: https://review.openstack.org/13638
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
parent
afd39bb3cd
commit
b8ff8a7fc7
4
.mailmap
4
.mailmap
|
@ -1,4 +0,0 @@
|
|||
# Format is:
|
||||
# <preferred e-mail> <other e-mail 1>
|
||||
# <preferred e-mail> <other e-mail 2>
|
||||
Zhongyue Luo <zhongyue.nah@intel.com> <lzyeval@gmail.com>
|
2
AUTHORS
2
AUTHORS
|
@ -1,3 +1,3 @@
|
|||
James E. Blair <jeblair@hp.com>
|
||||
Clark Boylan <clark.boylan@gmail.com>
|
||||
Zhongyue Luo <zhongyue.nah@intel.com>
|
||||
Zhongyue Luo <lzyeval@gmail.com>
|
||||
|
|
|
@ -362,17 +362,14 @@ class FakeGerrit(object):
|
|||
|
||||
class FakeJenkinsEvent(object):
|
||||
def __init__(self, name, number, parameters, phase, status=None):
|
||||
data = {
|
||||
'build': {
|
||||
'full_url': 'https://server/job/%s/%s/' % (name, number),
|
||||
data = {'build':
|
||||
{'full_url': 'https://server/job/%s/%s/' % (name, number),
|
||||
'number': number,
|
||||
'parameters': parameters,
|
||||
'phase': phase,
|
||||
'url': 'job/%s/%s/' % (name, number),
|
||||
},
|
||||
'url': 'job/%s/%s/' % (name, number)},
|
||||
'name': name,
|
||||
'url': 'job/%s/' % name,
|
||||
}
|
||||
'url': 'job/%s/' % name}
|
||||
if status:
|
||||
data['build']['status'] = status
|
||||
self.body = json.dumps(data)
|
||||
|
@ -1120,18 +1117,13 @@ class testScheduler(unittest.TestCase):
|
|||
|
||||
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()
|
||||
|
||||
|
|
4
tox.ini
4
tox.ini
|
@ -10,8 +10,8 @@ commands = nosetests {posargs}
|
|||
downloadcache = ~/cache/pip
|
||||
|
||||
[testenv:pep8]
|
||||
deps = pep8==1.3.3
|
||||
commands = pep8 --ignore=E122,E125,E126,E128 --repeat --show-source --exclude=.venv,.tox,dist,doc,build .
|
||||
deps = pep8==1.2
|
||||
commands = pep8 --repeat --show-source --exclude=.venv,.tox,dist,doc,build .
|
||||
|
||||
[testenv:cover]
|
||||
setenv = NOSE_WITH_COVERAGE=1
|
||||
|
|
Loading…
Reference in New Issue