Skip to content

Commit 10d434c

Browse files
author
Mike Graves
committed
Use a list of responses
1 parent 913e6ed commit 10d434c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ def test_filtered_item_search(client):
6464
# print(f'{endpoint}{enc_params1}')
6565
# print(f'{endpoint}{enc_params2}')
6666
json_object_1 = {'items': [{'link': '1234'}]}
67-
# json_object_2 = {'items': []}
68-
m.get(endpoint, json=json_object_1)
67+
json_object_2 = {'items': []}
68+
m.get(endpoint, [{'json': json_object_1}, {'json': json_object_2}])
6969
# m.get(f'{endpoint}{enc_params1}', json=json_object_1)
7070
# m.get(f'{endpoint}{enc_params2}', json=json_object_2)
7171
item_links = client.filtered_item_search(key, string, query_type,

0 commit comments

Comments
 (0)