@@ -999,7 +999,7 @@ def assert_annotations(bundled_aggregations: JsonDict) -> None:
999
999
bundled_aggregations ,
1000
1000
)
1001
1001
1002
- self ._test_bundled_aggregations (RelationTypes .ANNOTATION , assert_annotations , 6 )
1002
+ self ._test_bundled_aggregations (RelationTypes .ANNOTATION , assert_annotations , 7 )
1003
1003
1004
1004
def test_annotation_to_annotation (self ) -> None :
1005
1005
"""Any relation to an annotation should be ignored."""
@@ -1035,7 +1035,7 @@ def assert_annotations(bundled_aggregations: JsonDict) -> None:
1035
1035
bundled_aggregations ,
1036
1036
)
1037
1037
1038
- self ._test_bundled_aggregations (RelationTypes .REFERENCE , assert_annotations , 6 )
1038
+ self ._test_bundled_aggregations (RelationTypes .REFERENCE , assert_annotations , 7 )
1039
1039
1040
1040
def test_thread (self ) -> None :
1041
1041
"""
@@ -1080,21 +1080,21 @@ def assert_thread(bundled_aggregations: JsonDict) -> None:
1080
1080
1081
1081
# The "user" sent the root event and is making queries for the bundled
1082
1082
# aggregations: they have participated.
1083
- self ._test_bundled_aggregations (RelationTypes .THREAD , _gen_assert (True ), 8 )
1083
+ self ._test_bundled_aggregations (RelationTypes .THREAD , _gen_assert (True ), 9 )
1084
1084
# The "user2" sent replies in the thread and is making queries for the
1085
1085
# bundled aggregations: they have participated.
1086
1086
#
1087
1087
# Note that this re-uses some cached values, so the total number of
1088
1088
# queries is much smaller.
1089
1089
self ._test_bundled_aggregations (
1090
- RelationTypes .THREAD , _gen_assert (True ), 2 , access_token = self .user2_token
1090
+ RelationTypes .THREAD , _gen_assert (True ), 3 , access_token = self .user2_token
1091
1091
)
1092
1092
1093
1093
# A user with no interactions with the thread: they have not participated.
1094
1094
user3_id , user3_token = self ._create_user ("charlie" )
1095
1095
self .helper .join (self .room , user = user3_id , tok = user3_token )
1096
1096
self ._test_bundled_aggregations (
1097
- RelationTypes .THREAD , _gen_assert (False ), 2 , access_token = user3_token
1097
+ RelationTypes .THREAD , _gen_assert (False ), 3 , access_token = user3_token
1098
1098
)
1099
1099
1100
1100
def test_thread_with_bundled_aggregations_for_latest (self ) -> None :
@@ -1142,7 +1142,7 @@ def assert_thread(bundled_aggregations: JsonDict) -> None:
1142
1142
bundled_aggregations ["latest_event" ].get ("unsigned" ),
1143
1143
)
1144
1144
1145
- self ._test_bundled_aggregations (RelationTypes .THREAD , assert_thread , 8 )
1145
+ self ._test_bundled_aggregations (RelationTypes .THREAD , assert_thread , 9 )
1146
1146
1147
1147
def test_nested_thread (self ) -> None :
1148
1148
"""
0 commit comments