@@ -418,6 +418,8 @@ def test_init(self, mocker, stream_view):
418
418
('test' , ['test here' ], []),
419
419
('here' , ['test here' ], []),
420
420
('test here' , ['test here' ], []),
421
+ (' ' , ['bar' , 'boo' , 'BOO' , 'fan' , 'FOO' , 'foo' , 'FOOBAR' ,
422
+ 'test here' ], []),
421
423
# With 'foo' pinned.
422
424
('f' , ['foo' , 'fan' , 'FOO' , 'FOOBAR' ], [['foo' ], ]),
423
425
('FOO' , ['foo' , 'FOO' , 'FOOBAR' ], [['foo' ], ]),
@@ -546,6 +548,8 @@ def test_init(self, mocker, topic_view):
546
548
('FOO' , ['FOO' , 'FOOBAR' , 'foo' ]),
547
549
('(no' , ['(no topic)' ]),
548
550
('topic' , ['(no topic)' ]),
551
+ (' ' , ['FOO' , 'FOOBAR' , 'foo' , 'fan' , 'boo' , 'BOO' , 'bar' ,
552
+ '(no topic)' ]),
549
553
])
550
554
def test_update_topics (self , mocker , topic_view , new_text , expected_log ):
551
555
topic_names = [
@@ -979,9 +983,10 @@ def test_update_user_list_editor_mode(self, mocker, right_col_view):
979
983
@pytest .mark .parametrize (['search_string' , 'assert_list' ,
980
984
'match_return_value' ], [
981
985
('U' , ["USER1" , "USER2" ], True ),
982
- ('F' , [], False )
986
+ ('F' , [], False ),
987
+ (' ' , ["USER1" , "USER2" ], True ),
983
988
], ids = [
984
- 'user match' , 'no user match' ,
989
+ 'user match' , 'no user match' , 'no search' ,
985
990
])
986
991
def test_update_user_list (self , right_col_view , mocker ,
987
992
search_string , assert_list , match_return_value ):
@@ -1002,7 +1007,6 @@ def test_update_user_presence(self, right_col_view, mocker,
1002
1007
set_body = mocker .patch (VIEWS + ".urwid.Frame.set_body" )
1003
1008
1004
1009
right_col_view .update_user_list (user_list = user_list )
1005
-
1006
1010
right_col_view .users_view .assert_called_with (user_list )
1007
1011
set_body .assert_called_once_with (right_col_view .body )
1008
1012
0 commit comments