Skip to content

Commit 14a55b8

Browse files
authoredMay 7, 2019
Make tests python 2 and 3 compatible (#26)
1 parent 3f5d55f commit 14a55b8

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed
 

‎test/test_query_api.py

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -247,18 +247,13 @@ def test_success(self):
247247

248248
def test_query_filter(self):
249249
test = self
250-
# Construct a set of arguments that
251-
args = [
252-
*self.args,
253-
# view_name
254-
None,
255-
# filter_array
256-
[
257-
QueryFilter('Field1', 'value', 'eq'),
258-
QueryFilter('Field2', 'value1', 'contains'),
259-
QueryFilter('Field2', 'value2', 'contains'),
260-
]
250+
view_name = None
251+
filter_array = [
252+
QueryFilter('Field1', 'value', 'eq'),
253+
QueryFilter('Field2', 'value1', 'contains'),
254+
QueryFilter('Field2', 'value2', 'contains'),
261255
]
256+
args = list(self.args) + [view_name, filter_array]
262257
# Expected query field values in post request body
263258
query_field = {
264259
'query.Field1~eq': ['value'],

0 commit comments

Comments
 (0)
Please sign in to comment.