@@ -2130,7 +2130,8 @@ def test_notify_users_hides_PM_content_based_on_user_setting(
21302130 "topic_msg_ids" : {
21312131 10 : {"new subject" : {1 }, "old subject" : {2 }},
21322132 },
2133- "edited_messages" : {1 },
2133+ "edited_messages" : set (),
2134+ "moved_messages" : {1 },
21342135 "topics" : {10 : []},
21352136 },
21362137 False ,
@@ -2163,7 +2164,8 @@ def test_notify_users_hides_PM_content_based_on_user_setting(
21632164 "topic_msg_ids" : {
21642165 10 : {"new subject" : {1 , 2 }, "old subject" : set ()},
21652166 },
2166- "edited_messages" : {1 },
2167+ "edited_messages" : set (),
2168+ "moved_messages" : {1 },
21672169 "topics" : {10 : []},
21682170 },
21692171 False ,
@@ -2195,6 +2197,7 @@ def test_notify_users_hides_PM_content_based_on_user_setting(
21952197 10 : {"new subject" : set (), "old subject" : {1 , 2 }},
21962198 },
21972199 "edited_messages" : {1 },
2200+ "moved_messages" : set (),
21982201 "topics" : {10 : ["new subject" , "old subject" ]},
21992202 },
22002203 False ,
@@ -2228,7 +2231,8 @@ def test_notify_users_hides_PM_content_based_on_user_setting(
22282231 "topic_msg_ids" : {
22292232 10 : {"new subject" : {1 }, "old subject" : {2 }},
22302233 },
2231- "edited_messages" : {1 },
2234+ "edited_messages" : set (),
2235+ "moved_messages" : {1 },
22322236 "topics" : {10 : []},
22332237 },
22342238 False ,
@@ -2259,6 +2263,7 @@ def test_notify_users_hides_PM_content_based_on_user_setting(
22592263 10 : {"new subject" : set (), "old subject" : {1 , 2 }},
22602264 },
22612265 "edited_messages" : {1 },
2266+ "moved_messages" : set (),
22622267 "topics" : {10 : ["new subject" , "old subject" ]},
22632268 },
22642269 False ,
@@ -2293,6 +2298,7 @@ def test_notify_users_hides_PM_content_based_on_user_setting(
22932298 10 : {"new subject" : {3 }, "old subject" : {1 , 2 }},
22942299 },
22952300 "edited_messages" : set (),
2301+ "moved_messages" : set (),
22962302 "topics" : {10 : []}, # This resets the cache
22972303 },
22982304 False ,
@@ -2327,6 +2333,7 @@ def test_notify_users_hides_PM_content_based_on_user_setting(
23272333 10 : {"new subject" : {3 }, "old subject" : {1 , 2 }},
23282334 },
23292335 "edited_messages" : set (),
2336+ "moved_messages" : set (),
23302337 "topics" : {10 : ["new subject" , "old subject" ]},
23312338 },
23322339 True ,
@@ -2360,7 +2367,8 @@ def test_notify_users_hides_PM_content_based_on_user_setting(
23602367 "topic_msg_ids" : {
23612368 10 : {"new subject" : {1 }, "old subject" : {2 }},
23622369 },
2363- "edited_messages" : {1 },
2370+ "edited_messages" : set (),
2371+ "moved_messages" : {1 },
23642372 "topics" : {10 : ["new subject" , "old subject" ]},
23652373 },
23662374 True ,
@@ -2393,6 +2401,7 @@ def test__handle_update_message_event(
23932401 10 : {"new subject" : set (), "old subject" : {1 , 2 }},
23942402 },
23952403 "edited_messages" : set (),
2404+ "moved_messages" : set (),
23962405 "topics" : {10 : ["new subject" , "old subject" ]},
23972406 }
23982407 mocker .patch (MODEL + "._update_rendered_view" )
0 commit comments