@@ -888,6 +888,8 @@ def test_toggle_stream_muted_status(
888
888
(["read" ], "add" ),
889
889
(["read" , "starred" ], "remove" ),
890
890
(["starred" , "read" ], "remove" ),
891
+ (["read" , "mentioned" , "wildcard_mentioned" ], "add" ),
892
+ (["mentioned" , "wildcard_mentioned" , "starred" ], "remove" ),
891
893
],
892
894
)
893
895
def test_toggle_message_star_status (
@@ -1983,11 +1985,18 @@ def test_update_star_status_invalid_operation(
1983
1985
("add" , 1 , ["read" ], ["read" , "starred" ]),
1984
1986
("add" , 1 , ["starred" ], ["starred" ]),
1985
1987
("add" , 1 , ["read" , "starred" ], ["read" , "starred" ]),
1988
+ ("add" , 1 , ["mentioned" ], ["mentioned" , "starred" ]),
1989
+ ("add" , 1 , ["mentioned" , "starred" ], ["mentioned" , "starred" ]),
1990
+ ("add" , 1 , ["wildcard_mentioned" ], ["wildcard_mentioned" , "starred" ]),
1986
1991
("remove" , - 1 , [], []),
1987
1992
("remove" , - 1 , ["read" ], ["read" ]),
1988
1993
("remove" , - 1 , ["starred" ], []),
1989
1994
("remove" , - 1 , ["read" , "starred" ], ["read" ]),
1990
1995
("remove" , - 1 , ["starred" , "read" ], ["read" ]),
1996
+ ("remove" , - 1 , ["mentioned" ], ["mentioned" ]),
1997
+ ("remove" , - 1 , ["wildcard_mentioned" ], ["wildcard_mentioned" ]),
1998
+ ("remove" , - 1 , ["mentioned" , "starred" ], ["mentioned" ]),
1999
+ ("remove" , - 1 , ["wildcard_mentioned" , "starred" ], ["wildcard_mentioned" ]),
1991
2000
],
1992
2001
)
1993
2002
def test_update_star_status (
@@ -2066,11 +2075,19 @@ def test_update_star_status(
2066
2075
("add" , ["read" ], ["read" ]),
2067
2076
("add" , ["starred" ], ["starred" , "read" ]),
2068
2077
("add" , ["read" , "starred" ], ["read" , "starred" ]),
2078
+ ("add" , ["mentioned" ], ["mentioned" , "read" ]),
2079
+ ("add" , ["read" , "mentioned" ], ["read" , "mentioned" ]),
2080
+ ("add" , ["mentioned" , "starred" ], ["mentioned" , "starred" , "read" ]),
2081
+ ("add" , ["wildcard_mentioned" ], ["wildcard_mentioned" , "read" ]),
2069
2082
("remove" , [], []),
2070
2083
("remove" , ["read" ], ["read" ]), # msg cannot be marked 'unread'
2071
2084
("remove" , ["starred" ], ["starred" ]),
2085
+ ("remove" , ["mentioned" ], ["mentioned" ]),
2072
2086
("remove" , ["starred" , "read" ], ["starred" , "read" ]),
2073
2087
("remove" , ["read" , "starred" ], ["read" , "starred" ]),
2088
+ ("remove" , ["read" , "mentioned" ], ["read" , "mentioned" ]),
2089
+ ("remove" , ["wildcard_mentioned" ], ["wildcard_mentioned" ]),
2090
+ ("remove" , ["read" , "wildcard_mentioned" ], ["read" , "wildcard_mentioned" ]),
2074
2091
],
2075
2092
)
2076
2093
def test_update_read_status (
0 commit comments