Revision: 83ef26cbc406
Branch: default
Author: Robot Framework Developers ([email protected])
Date: Thu May 30 02:34:51 2013
Log: fixed utests after changing --output=NONE behavior
http://code.google.com/p/robotframework/source/detail?r=83ef26cbc406
Modified:
/utest/api/test_run_and_rebot.py
=======================================
--- /utest/api/test_run_and_rebot.py Mon Aug 27 07:06:39 2012
+++ /utest/api/test_run_and_rebot.py Thu May 30 02:34:51 2013
@@ -85,8 +85,8 @@
assert exists(LOG_PATH)
def test_run_multiple_times(self):
- assert_equals(run(self.data, output='NONE', critical='nomatch'), 0)
- assert_equals(run(self.data, output='NONE', name='New Name'), 1)
+ assert_equals(run(self.data, output='NONE', report='NoNe',
log='none', critical='nomatch'), 0)
+ assert_equals(run(self.data, output='NONE', report='NoNe',
log='none', name='New Name'), 1)
self._assert_outputs([('Pass And Fail', 2), ('New Name', 2), (LOG,
0)])
def test_run_fails(self):
@@ -98,28 +98,28 @@
def test_custom_stdout(self):
stdout = StringIO()
- assert_equals(run(self.data, output='NONE', stdout=stdout), 1)
+ assert_equals(run(self.data, output='NONE', report='NoNe',
log='none', stdout=stdout), 1)
self._assert_output(stdout, [('Pass And Fail', 2), ('Output:', 1),
('Log:', 0), ('Report:', 0)])
self._assert_outputs()
def test_custom_stderr(self):
stderr = StringIO()
- assert_equals(run(self.warn, output='NONE', stderr=stderr), 0)
+ assert_equals(run(self.warn, output='NONE', report='NoNe',
log='none', stderr=stderr), 0)
self._assert_output(stderr, [('[ WARN ]', 4), ('[ ERROR ]', 1)])
self._assert_outputs([('Warnings And Errors', 2), ('Output:', 1),
('Log:', 0), ('Report:', 0)])
def test_custom_stdout_and_stderr_with_minimal_implementation(self):
output = StreamWithOnlyWriteAndFlush()
- assert_equals(run(self.warn, output='NONE', stdout=output,
stderr=output), 0)
+ assert_equals(run(self.warn, output='NONE', report='NoNe',
log='none', stdout=output, stderr=output), 0)
self._assert_output(output, [('[ WARN ]', 4), ('[ ERROR ]', 1),
('Warnings And Errors', 3),
('Output:', 1),
('Log:', 0), ('Report:', 0)])
self._assert_outputs()
def test_multi_options_as_single_string(self):
- assert_equals(run(self.data, output='NONE', exclude='fail'), 0)
+ assert_equals(run(self.data, output='NONE', report='NoNe',
log='none', exclude='fail'), 0)
self._assert_outputs([('FAIL', 0)])
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.