@@ -1646,7 +1646,7 @@ def test_notify_users_enabled(
1646
1646
},
1647
1647
},
1648
1648
"topic_msg_ids" : {
1649
- 10 : {"old subject" : {2 }},
1649
+ 10 : {"new subject" : { 1 }, " old subject" : {2 }},
1650
1650
},
1651
1651
"edited_messages" : {1 },
1652
1652
"topics" : {10 : []},
@@ -1679,7 +1679,7 @@ def test_notify_users_enabled(
1679
1679
},
1680
1680
},
1681
1681
"topic_msg_ids" : {
1682
- 10 : {"old subject" : set ()},
1682
+ 10 : {"new subject" : { 1 , 2 }, " old subject" : set ()},
1683
1683
},
1684
1684
"edited_messages" : {1 },
1685
1685
"topics" : {10 : []},
@@ -1710,10 +1710,10 @@ def test_notify_users_enabled(
1710
1710
},
1711
1711
},
1712
1712
"topic_msg_ids" : {
1713
- 10 : {"old subject" : {1 , 2 }},
1713
+ 10 : {"new subject" : set (), " old subject" : {1 , 2 }},
1714
1714
},
1715
1715
"edited_messages" : {1 },
1716
- "topics" : {10 : ["old subject" ]},
1716
+ "topics" : {10 : ["new subject" , " old subject" ]},
1717
1717
},
1718
1718
False ,
1719
1719
id = "Message content is updated" ,
@@ -1744,7 +1744,7 @@ def test_notify_users_enabled(
1744
1744
},
1745
1745
},
1746
1746
"topic_msg_ids" : {
1747
- 10 : {"old subject" : {2 }},
1747
+ 10 : {"new subject" : { 1 }, " old subject" : {2 }},
1748
1748
},
1749
1749
"edited_messages" : {1 },
1750
1750
"topics" : {10 : []},
@@ -1774,10 +1774,10 @@ def test_notify_users_enabled(
1774
1774
},
1775
1775
},
1776
1776
"topic_msg_ids" : {
1777
- 10 : {"old subject" : {1 , 2 }},
1777
+ 10 : {"new subject" : set (), " old subject" : {1 , 2 }},
1778
1778
},
1779
1779
"edited_messages" : {1 },
1780
- "topics" : {10 : ["old subject" ]},
1780
+ "topics" : {10 : ["new subject" , " old subject" ]},
1781
1781
},
1782
1782
False ,
1783
1783
id = "Some new type of update which we don't handle yet" ,
@@ -1808,7 +1808,7 @@ def test_notify_users_enabled(
1808
1808
},
1809
1809
},
1810
1810
"topic_msg_ids" : {
1811
- 10 : {"old subject" : {1 , 2 }},
1811
+ 10 : {"new subject" : { 3 }, " old subject" : {1 , 2 }},
1812
1812
},
1813
1813
"edited_messages" : set (),
1814
1814
"topics" : {10 : []}, # This resets the cache
@@ -1842,7 +1842,7 @@ def test_notify_users_enabled(
1842
1842
},
1843
1843
},
1844
1844
"topic_msg_ids" : {
1845
- 10 : {"old subject" : {1 , 2 }},
1845
+ 10 : {"new subject" : { 3 }, " old subject" : {1 , 2 }},
1846
1846
},
1847
1847
"edited_messages" : set (),
1848
1848
"topics" : {10 : ["new subject" , "old subject" ]},
@@ -1876,7 +1876,7 @@ def test_notify_users_enabled(
1876
1876
},
1877
1877
},
1878
1878
"topic_msg_ids" : {
1879
- 10 : {"old subject" : {2 }},
1879
+ 10 : {"new subject" : { 1 }, " old subject" : {2 }},
1880
1880
},
1881
1881
"edited_messages" : {1 },
1882
1882
"topics" : {10 : ["new subject" , "old subject" ]},
@@ -1908,10 +1908,10 @@ def test__handle_update_message_event(
1908
1908
for message_id in [1 , 2 ]
1909
1909
},
1910
1910
"topic_msg_ids" : {
1911
- 10 : {"old subject" : {1 , 2 }},
1911
+ 10 : {"new subject" : set (), " old subject" : {1 , 2 }},
1912
1912
},
1913
1913
"edited_messages" : set (),
1914
- "topics" : {10 : ["old subject" ]},
1914
+ "topics" : {10 : ["new subject" , " old subject" ]},
1915
1915
}
1916
1916
mocker .patch (MODEL + "._update_rendered_view" )
1917
1917
0 commit comments