Skip to content

Commit 681868b

Browse files
committed
test: minor legibility fix
1 parent 1793283 commit 681868b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hooktests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,23 +253,23 @@ def test_gitpreautogc(self):
253253
def test_gitprereceive(self):
254254
revs = (('a'*40, 'b'*40, 'refs/heads/master'),
255255
('c'*40, 'd'*40, 'refs/heads/stable'))
256-
dummyinput = ["%s %s %s\n" %(a, b, c) for (a, b, c) in revs]
256+
dummyinput = [' '.join(r)+'\n' for r in revs]
257257
hooklib_input.readlines = MagicMock(return_value=dummyinput)
258258
revdata = inputparser.fromphase('pre-receive').parse()
259259
assert(revdata.receivedrevs == revs)
260260

261261
def test_gitpostreceive(self):
262262
revs = (('a'*40, 'b'*40, 'refs/heads/master'),
263263
('c'*40, 'd'*40, 'refs/heads/stable'))
264-
dummyinput = ["%s %s %s\n" %(a, b, c) for (a, b, c) in revs]
264+
dummyinput = [' '.join(r)+'\n' for r in revs]
265265
hooklib_input.readlines = MagicMock(return_value=dummyinput)
266266
revdata = inputparser.fromphase('post-receive').parse()
267267
assert(revdata.receivedrevs == revs)
268268

269269
def test_gitprepush(self):
270270
revs = (('refs/heads/master', 'a'*40, 'refs/heads/foreign', 'b'*40),
271271
('refs/heads/master', 'a'*40, 'refs/heads/foreign', '0'*40))
272-
dummyinput = ["%s %s %s %s\n" %(a, b, c, d) for (a, b, c, d) in revs]
272+
dummyinput = [' '.join(r)+'\n' for r in revs]
273273
hooklib_input.readlines = MagicMock(return_value=dummyinput)
274274
revdata = inputparser.fromphase('pre-push').parse()
275275
assert(revdata.revstobepushed == revs)

0 commit comments

Comments
 (0)