@@ -1238,14 +1238,17 @@ def test_reaction_add_child(self):
12381238
12391239 def test_reaction_filter_random (self ):
12401240 self .c .reactions .filter (
1241+ kind = "like" ,
12411242 reaction_id = "54a60c1e-4ee3-494b-a1e3-50c06acb5ed4" ,
12421243 id_lte = "54a60c1e-4ee3-494b-a1e3-50c06acb5ed4" ,
12431244 )
12441245 self .c .reactions .filter (
1246+ kind = "dunno" ,
12451247 activity_id = "54a60c1e-4ee3-494b-a1e3-50c06acb5ed4" ,
12461248 id_lte = "54a60c1e-4ee3-494b-a1e3-50c06acb5ed4" ,
12471249 )
12481250 self .c .reactions .filter (
1251+ kind = "val" ,
12491252 user_id = "mike" , id_lte = "54a60c1e-4ee3-494b-a1e3-50c06acb5ed4"
12501253 )
12511254
@@ -1262,15 +1265,22 @@ def test_reaction_filter(self):
12621265 response = self .c .reactions .add ("like" , activity_id , user )
12631266 child = self .c .reactions .add_child ("like" , response ["id" ], user )
12641267 reaction = self .c .reactions .get (response ["id" ])
1265- r = self .c .reactions .filter (reaction_id = reaction ["id" ])
1268+
1269+ response = self .c .reactions .add ("comment" , activity_id , user )
1270+ reaction_comment = self .c .reactions .get (response ["id" ])
1271+
1272+ r = self .c .reactions .filter (kind = "like" , reaction_id = reaction ["id" ])
12661273 self ._first_result_should_be (r , child )
12671274
1268- r = self .c .reactions .filter (activity_id = activity_id , id_lte = reaction ["id" ])
1275+ r = self .c .reactions .filter (kind = "like" , activity_id = activity_id , id_lte = reaction ["id" ])
12691276 self ._first_result_should_be (r , reaction )
12701277
1271- r = self .c .reactions .filter (user_id = user , id_lte = reaction ["id" ])
1278+ r = self .c .reactions .filter (kind = "like" , user_id = user , id_lte = reaction ["id" ])
12721279 self ._first_result_should_be (r , reaction )
12731280
1281+ r = self .c .reactions .filter (kind = "comment" , activity_id = activity_id )
1282+ self ._first_result_should_be (r , reaction_comment )
1283+
12741284 def test_user_add (self ):
12751285 self .c .users .add (str (uuid1 ()))
12761286
0 commit comments