7
7
from pytest import param as case
8
8
from zulip import Client , ZulipError
9
9
10
+ from zulipterminal .config .symbols import STREAM_TOPIC_SEPARATOR
10
11
from zulipterminal .helper import initial_index , powerset
11
12
from zulipterminal .model import (
12
13
MAX_MESSAGE_LENGTH ,
@@ -854,7 +855,13 @@ def test_update_private_message(
854
855
},
855
856
"Old topic" ,
856
857
[
857
- "You changed one message's topic from #stream > Old topic to #stream > Topic change."
858
+ "You changed one message's topic from " ,
859
+ ("footer_contrast" , f" stream { STREAM_TOPIC_SEPARATOR } " ),
860
+ ("footer_contrast" , " Old topic " ),
861
+ " to " ,
862
+ ("footer_contrast" , f" stream { STREAM_TOPIC_SEPARATOR } " ),
863
+ ("footer_contrast" , " Topic change " ),
864
+ " ." ,
858
865
],
859
866
),
860
867
case (
@@ -885,7 +892,13 @@ def test_update_private_message(
885
892
},
886
893
"old_terminal" ,
887
894
[
888
- "You changed some messages' topic from #stream > old_terminal to #stream > new_terminal."
895
+ "You changed some messages' topic from " ,
896
+ ("footer_contrast" , f" stream { STREAM_TOPIC_SEPARATOR } " ),
897
+ ("footer_contrast" , " old_terminal " ),
898
+ " to " ,
899
+ ("footer_contrast" , f" stream { STREAM_TOPIC_SEPARATOR } " ),
900
+ ("footer_contrast" , " new_terminal " ),
901
+ " ." ,
889
902
],
890
903
),
891
904
case (
@@ -897,7 +910,13 @@ def test_update_private_message(
897
910
},
898
911
"greet" ,
899
912
[
900
- "You changed one message's topic from #stream > greet to #stream > grett."
913
+ "You changed one message's topic from " ,
914
+ ("footer_contrast" , f" stream { STREAM_TOPIC_SEPARATOR } " ),
915
+ ("footer_contrast" , " greet " ),
916
+ " to " ,
917
+ ("footer_contrast" , f" stream { STREAM_TOPIC_SEPARATOR } " ),
918
+ ("footer_contrast" , " grett " ),
919
+ " ." ,
901
920
],
902
921
),
903
922
case (
@@ -909,7 +928,13 @@ def test_update_private_message(
909
928
},
910
929
"lets_party" ,
911
930
[
912
- "You changed all messages' topic from #stream > lets_party to #stream > party."
931
+ "You changed all messages' topic from " ,
932
+ ("footer_contrast" , f" stream { STREAM_TOPIC_SEPARATOR } " ),
933
+ ("footer_contrast" , " lets_party " ),
934
+ " to " ,
935
+ ("footer_contrast" , f" stream { STREAM_TOPIC_SEPARATOR } " ),
936
+ ("footer_contrast" , " party " ),
937
+ " ." ,
913
938
],
914
939
),
915
940
],
0 commit comments