20 lines
568 B
Python
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)
|