Skip to content

Commit ce2be1b

Browse files
remove pagination from positional arg test
1 parent 9cee8f0 commit ce2be1b

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

tests/integration/test_data_api.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -230,22 +230,14 @@ async def test_search_filter_positional_args(item_descriptions,
230230
search_filter,
231231
search_response,
232232
session):
233+
"""test the search method using positional args"""
233234

234235
quick_search_url = f'{TEST_URL}/quick-search'
235-
next_page_url = f'{TEST_URL}/blob/?page_marker=IAmATest'
236236

237237
item1, item2, item3 = item_descriptions
238-
page1_response = {
239-
"_links": {
240-
"_next": next_page_url
241-
}, "features": [item1, item2]
242-
}
243-
mock_resp1 = httpx.Response(HTTPStatus.OK, json=page1_response)
244-
respx.post(quick_search_url).return_value = mock_resp1
245-
246-
page2_response = {"_links": {"_self": next_page_url}, "features": [item3]}
247-
mock_resp2 = httpx.Response(HTTPStatus.OK, json=page2_response)
248-
respx.get(next_page_url).return_value = mock_resp2
238+
response = {"features": [item1, item2, item3]}
239+
mock_resp = httpx.Response(HTTPStatus.OK, json=response)
240+
respx.post(quick_search_url).return_value = mock_resp
249241

250242
cl = DataClient(session, base_url=TEST_URL)
251243

0 commit comments

Comments
 (0)