1
0
mirror of synced 2026-01-16 09:06:29 -05:00
Files
airbyte/airbyte-integrations/connectors/source-github/unit_tests/conftest.py
2024-02-12 16:53:59 +01:00

20 lines
582 B
Python

# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
import os
import pytest
import responses
os.environ["REQUEST_CACHE_PATH"] = "REQUEST_CACHE_PATH"
@pytest.fixture(name="rate_limit_mock_response")
def rate_limit_mock_response():
rate_limit_response = {
"resources": {
"core": {"limit": 5000, "used": 0, "remaining": 5000, "reset": 4070908800},
"graphql": {"limit": 5000, "used": 0, "remaining": 5000, "reset": 4070908800},
}
}
responses.add(responses.GET, "https://api.github.com/rate_limit", json=rate_limit_response)