@@ -146,7 +146,6 @@ def test_invalid_modifier(self):
146
146
"failed: AttributeError: " , 1 )])
147
147
148
148
149
-
150
149
class TestRebot (RunningTestCase ):
151
150
data = join (ROOT , 'atest' , 'testdata' , 'rebot' , 'created_normal.xml' )
152
151
nonex = join (TEMP , 'non-existing-file-this-is.xml' )
@@ -172,16 +171,16 @@ def test_run_fails(self):
172
171
def test_custom_stdout (self ):
173
172
stdout = StringIO ()
174
173
assert_equal (rebot (self .data , report = 'None' , stdout = stdout ,
175
- outputdir = TEMP ), 1 )
174
+ outputdir = TEMP ), 1 )
176
175
self ._assert_output (stdout , [('Log:' , 1 ), ('Report:' , 0 )])
177
176
self ._assert_outputs ()
178
177
179
178
def test_custom_stdout_and_stderr_with_minimal_implementation (self ):
180
179
output = StreamWithOnlyWriteAndFlush ()
181
180
assert_equal (rebot (self .data , log = 'NONE' , report = 'NONE' , stdout = output ,
182
- stderr = output ), 252 )
181
+ stderr = output ), 252 )
183
182
assert_equal (rebot (self .data , report = 'NONE' , stdout = output ,
184
- stderr = output , outputdir = TEMP ), 1 )
183
+ stderr = output , outputdir = TEMP ), 1 )
185
184
self ._assert_output (output , [('[ ERROR ] No outputs created' , 1 ),
186
185
('--help' , 1 ), ('Log:' , 1 ), ('Report:' , 0 )])
187
186
self ._assert_outputs ()
@@ -195,7 +194,7 @@ def visit_test(self, test):
195
194
test .status = 'FAIL'
196
195
modifier = Modifier ()
197
196
assert_equal (rebot (self .data , outputdir = TEMP ,
198
- prerebotmodifier = modifier ), 3 )
197
+ prerebotmodifier = modifier ), 3 )
199
198
assert_equal (modifier .tests , ['Test 1.1' , 'Test 1.2' , 'Test 2.1' ])
200
199
201
200
@@ -266,8 +265,8 @@ def test_different_timestamps_when_run_multiple_times(self):
266
265
def run_tests (self ):
267
266
data = join (ROOT , 'atest' , 'testdata' , 'misc' , 'pass_and_fail.robot' )
268
267
assert_equal (run (data , timestampoutputs = True , outputdir = TEMP ,
269
- output = 'output-ts.xml' , report = 'report-ts.html' ,
270
- log = 'log-ts' ), 1 )
268
+ output = 'output-ts.xml' , report = 'report-ts.html' ,
269
+ log = 'log-ts' ), 1 )
271
270
272
271
def find_results (self , pattern , expected ):
273
272
matches = glob .glob (pattern )
0 commit comments