1
0
mirror of synced 2025-12-21 02:51:29 -05:00
Files
airbyte/airbyte-integrations/connectors/source-github/unit_tests/conftest.py
2025-10-02 13:29:00 +03:00

20 lines
568 B
Python

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