File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ def test_filter_group_id_in_subquery(self):
63
63
qs = Tag .objects .filter (group_id__in = subquery ).order_by ("name" )
64
64
self .assertSequenceEqual (qs , [self .t3 , self .t4 ])
65
65
66
- def test_union_children_to_select_parents (self ):
67
- """Union query to select parents of children based on group_id"""
66
+ def test_filter_parent_by_children_values (self ):
67
+ """Query to select parents of children based on group_id"""
68
68
child_group_ids = [self .group_id_str_1 , self .group_id_obj_1 ]
69
69
for group_id in child_group_ids :
70
70
with self .subTest (group_id = group_id ):
@@ -88,7 +88,7 @@ def test_filter_group_id_union_with(self):
88
88
self .assertSequenceEqual (union_qs , [self .t3 , self .t4 ])
89
89
90
90
def test_invalid_object_id (self ):
91
- """Combine queries using union """
91
+ """Test invalid value in filter """
92
92
value = "value1"
93
93
msg = f"Field 'group_id' expected an ObjectId but got '{ value } '."
94
94
with self .assertRaisesMessage (ValueError , msg ):
You can’t perform that action at this time.
0 commit comments