Skip to content

Commit 6088b32

Browse files
committed
test: extend searchEvents test by adding pagination_key param check
1 parent 1d59f59 commit 6088b32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test_fingerprint_api.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,20 +724,21 @@ def test_search_events_all_params(self):
724724
def test_search_events_partial_params(self):
725725
"""Test that search events returns 200 with partial params provided"""
726726
LIMIT = 100
727+
PAGINATION_KEY = '1741187431959'
727728
BOT = 'good'
728729
LINKED_ID = 'some_linked_id'
729730
START = 1582299576511
730731
REVERSE = True
731732
mock_pool = MockPoolManager(self)
732733
self.api.api_client.rest_client.pool_manager = mock_pool
733734
mock_pool.expect_request('GET', TestFingerprintApi.get_search_events_path(),
734-
fields=[self.integration_info, ('limit', LIMIT),
735+
fields=[self.integration_info, ('limit', LIMIT), ('pagination_key', PAGINATION_KEY),
735736
('visitor_id', MOCK_SEARCH_EVENTS_200), ('bot', BOT),
736737
('linked_id', LINKED_ID), ('start', START), ('reverse', REVERSE)],
737738
headers=self.request_headers, preload_content=True, timeout=None)
738739

739740
response = self.api.search_events(LIMIT, visitor_id=MOCK_SEARCH_EVENTS_200, bot=BOT, linked_id=LINKED_ID,
740-
start=START, reverse=REVERSE)
741+
start=START, reverse=REVERSE, pagination_key=PAGINATION_KEY)
741742
self.assertIsInstance(response, SearchEventsResponse)
742743
event_response = response.events[0]
743744
self.assertIsInstance(event_response, SearchEventsResponseEvents)

0 commit comments

Comments
 (0)