22import sys
33
44from robot .utils .asserts import assert_equals
5- from robot .output .monitor import CommandLineMonitor
5+ from robot .output .console . verbose import VerboseOutput
66
77# Overwrite IronPython's special utils.isatty with version using stream.isatty.
88# Otherwise our StreamStub.isatty would not really work.
@@ -15,9 +15,9 @@ class TestKeywordNotification(unittest.TestCase):
1515
1616 def setUp (self , markers = 'AUTO' , isatty = True ):
1717 self .stream = StreamStub (isatty )
18- self .monitor = CommandLineMonitor (width = 16 , colors = 'off' , markers = markers ,
19- stdout = self .stream , stderr = self .stream )
20- self .monitor .start_test (Stub ())
18+ self .console = VerboseOutput (width = 16 , colors = 'off' , markers = markers ,
19+ stdout = self .stream , stderr = self .stream )
20+ self .console .start_test (Stub ())
2121
2222 def test_write_pass_marker (self ):
2323 self ._write_marker ()
@@ -46,12 +46,12 @@ def test_more_markers_than_fit_into_status_area(self):
4646
4747 def test_clear_markers_when_test_status_is_written (self ):
4848 self ._write_marker (count = 5 )
49- self .monitor .end_test (Stub ())
50- self ._verify ('| PASS |\n %s\n ' % ('-' * self .monitor ._writer ._width ))
49+ self .console .end_test (Stub ())
50+ self ._verify ('| PASS |\n %s\n ' % ('-' * self .console ._writer ._width ))
5151
5252 def test_clear_markers_when_there_are_warnings (self ):
5353 self ._write_marker (count = 5 )
54- self .monitor .message (MessageStub ())
54+ self .console .message (MessageStub ())
5555 self ._verify (before = '[ WARN ] Message\n ' )
5656 self ._write_marker (count = 2 )
5757 self ._verify (before = '[ WARN ] Message\n ' , after = '..' )
@@ -76,8 +76,8 @@ def test_markers_auto_off(self):
7676
7777 def _write_marker (self , status = 'PASS' , count = 1 ):
7878 for i in range (count ):
79- self .monitor .start_keyword (Stub ())
80- self .monitor .end_keyword (Stub (status = status ))
79+ self .console .start_keyword (Stub ())
80+ self .console .end_keyword (Stub (status = status ))
8181
8282 def _verify (self , after = '' , before = '' ):
8383 assert_equals (str (self .stream ), '%sX :: D %s' % (before , after ))
0 commit comments