@@ -59,11 +59,11 @@ def test_will_preview(self):
59
59
Will preview the proposed deletes.
60
60
"""
61
61
for i in range (1 , 6 ):
62
- self .command ('git checkout -b branch{}' .format (i ))
62
+ self .command ('git checkout -b branch{0 }' .format (i ))
63
63
self .make_commit ()
64
64
self .command ('git checkout master' )
65
65
self .make_commit ()
66
- self .command ('git merge branch{}' .format (i ))
66
+ self .command ('git merge branch{0 }' .format (i ))
67
67
68
68
(retcode , stdout , stderr ) = self .gscommand ('git-sweep preview' )
69
69
@@ -85,7 +85,7 @@ def test_will_preview_none_found(self):
85
85
Will preview the proposed deletes.
86
86
"""
87
87
for i in range (1 , 6 ):
88
- self .command ('git checkout -b branch{}' .format (i ))
88
+ self .command ('git checkout -b branch{0 }' .format (i ))
89
89
self .make_commit ()
90
90
self .command ('git checkout master' )
91
91
@@ -101,11 +101,11 @@ def test_will_cleanup(self):
101
101
Will preview the proposed deletes.
102
102
"""
103
103
for i in range (1 , 6 ):
104
- self .command ('git checkout -b branch{}' .format (i ))
104
+ self .command ('git checkout -b branch{0 }' .format (i ))
105
105
self .make_commit ()
106
106
self .command ('git checkout master' )
107
107
self .make_commit ()
108
- self .command ('git merge branch{}' .format (i ))
108
+ self .command ('git merge branch{0 }' .format (i ))
109
109
110
110
with patch ('gitsweep.cli.raw_input' , create = True ) as ri :
111
111
ri .return_value = 'y'
@@ -139,11 +139,11 @@ def test_will_abort_cleanup(self):
139
139
Will preview the proposed deletes.
140
140
"""
141
141
for i in range (1 , 6 ):
142
- self .command ('git checkout -b branch{}' .format (i ))
142
+ self .command ('git checkout -b branch{0 }' .format (i ))
143
143
self .make_commit ()
144
144
self .command ('git checkout master' )
145
145
self .make_commit ()
146
- self .command ('git merge branch{}' .format (i ))
146
+ self .command ('git merge branch{0 }' .format (i ))
147
147
148
148
with patch ('gitsweep.cli.raw_input' , create = True ) as ri :
149
149
ri .return_value = 'n'
@@ -169,11 +169,11 @@ def test_will_skip_certain_branches(self):
169
169
Can be forced to skip certain branches.
170
170
"""
171
171
for i in range (1 , 6 ):
172
- self .command ('git checkout -b branch{}' .format (i ))
172
+ self .command ('git checkout -b branch{0 }' .format (i ))
173
173
self .make_commit ()
174
174
self .command ('git checkout master' )
175
175
self .make_commit ()
176
- self .command ('git merge branch{}' .format (i ))
176
+ self .command ('git merge branch{0 }' .format (i ))
177
177
178
178
(retcode , stdout , stderr ) = self .gscommand (
179
179
'git-sweep preview --skip=branch1,branch2' )
0 commit comments