1
0
mirror of synced 2026-01-04 00:04:25 -05:00
Files
airbyte/airbyte-integrations/connectors/source-qualaroo/unit_tests/helpers.py
Cole Snodgrass 2e099acc52 update headers from 2022 -> 2023 (#22594)
* It's 2023!

* 2022 -> 2023

---------

Co-authored-by: evantahler <evan@airbyte.io>
2023-02-08 13:01:16 -08:00

21 lines
507 B
Python

#
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
NO_SLEEP_HEADERS = {
"x-rate-limit-api-token-max": "1",
"x-rate-limit-api-token-remaining": "1",
"x-rate-limit-api-key-max": "1",
"x-rate-limit-api-key-remaining": "1",
}
def read_all_records(stream):
records = []
slices = stream.stream_slices(sync_mode=None)
for slice in slices:
for record in stream.read_records(sync_mode=None, stream_slice=slice):
records.append(record)
return records