Skip to content

Commit 67e5dad

Browse files
committed
Update test_models.py
1 parent 10d434c commit 67e5dad

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

tests/test_models.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import urllib
2-
31
import attr
42
import pytest
53
import requests_mock
@@ -51,23 +49,11 @@ def test_filtered_item_search(client):
5149
key = 'dc.title'
5250
string = 'test'
5351
query_type = 'contains'
54-
# selected_collections = ''
5552
endpoint = '/rest/filtered-items?'
56-
# params1 = {'query_field[]': key, 'query_op[]': query_type,
57-
# 'query_val[]': string, '&collSel[]':
58-
# selected_collections, 'limit': 200, 'offset': 0}
59-
# params2 = {'query_field[]': key, 'query_op[]': query_type,
60-
# 'query_val[]': string, '&collSel[]':
61-
# selected_collections, 'limit': 200, 'offset': 200}
62-
# enc_params1 = urllib.parse.urlencode(params1)
63-
# enc_params2 = urllib.parse.urlencode(params2)
64-
# print(f'{endpoint}{enc_params1}')
65-
# print(f'{endpoint}{enc_params2}')
6653
json_object_1 = {'items': [{'link': '1234'}]}
6754
json_object_2 = {'items': []}
6855
m.get(endpoint, [{'json': json_object_1}, {'json': json_object_2}])
69-
# m.get(f'{endpoint}{enc_params1}', json=json_object_1)
70-
# m.get(f'{endpoint}{enc_params2}', json=json_object_2)
56+
7157
item_links = client.filtered_item_search(key, string, query_type,
7258
selected_collections='')
7359
assert '1234' in item_links

0 commit comments

Comments
 (0)