@@ -45,11 +45,11 @@ def test_query_is_created_properly():
45
45
assert {
46
46
"aggs" : {
47
47
"_filter_tags" : {
48
- "filter" : {"match_all" : {}, },
48
+ "filter" : {"match_all" : {}},
49
49
"aggs" : {"tags" : {"terms" : {"field" : "tags" }}},
50
50
},
51
51
"_filter_category" : {
52
- "filter" : {"match_all" : {}, },
52
+ "filter" : {"match_all" : {}},
53
53
"aggs" : {"category" : {"terms" : {"field" : "category.raw" }}},
54
54
},
55
55
},
@@ -68,11 +68,11 @@ def test_query_is_created_properly_with_sort_tuple():
68
68
assert {
69
69
"aggs" : {
70
70
"_filter_tags" : {
71
- "filter" : {"match_all" : {}, },
71
+ "filter" : {"match_all" : {}},
72
72
"aggs" : {"tags" : {"terms" : {"field" : "tags" }}},
73
73
},
74
74
"_filter_category" : {
75
- "filter" : {"match_all" : {}, },
75
+ "filter" : {"match_all" : {}},
76
76
"aggs" : {"category" : {"terms" : {"field" : "category.raw" }}},
77
77
},
78
78
},
@@ -95,7 +95,7 @@ def test_filter_is_applied_to_search_but_not_relevant_facet():
95
95
"aggs" : {"tags" : {"terms" : {"field" : "tags" }}},
96
96
},
97
97
"_filter_category" : {
98
- "filter" : {"match_all" : {}, },
98
+ "filter" : {"match_all" : {}},
99
99
"aggs" : {"category" : {"terms" : {"field" : "category.raw" }}},
100
100
},
101
101
},
@@ -124,11 +124,11 @@ def test_filters_are_applied_to_search_ant_relevant_facets():
124
124
assert {
125
125
"aggs" : {
126
126
"_filter_tags" : {
127
- "filter" : {"terms" : {"category.raw" : ["elastic" ]}, },
127
+ "filter" : {"terms" : {"category.raw" : ["elastic" ]}},
128
128
"aggs" : {"tags" : {"terms" : {"field" : "tags" }}},
129
129
},
130
130
"_filter_category" : {
131
- "filter" : {"terms" : {"tags" : ["python" , "django" ]}, },
131
+ "filter" : {"terms" : {"tags" : ["python" , "django" ]}},
132
132
"aggs" : {"category" : {"terms" : {"field" : "category.raw" }}},
133
133
},
134
134
},
0 commit comments