diff --git a/test/conftest.py b/test/conftest.py index 15ca907de..e345561ff 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -1,5 +1,4 @@ import warnings -from datetime import timedelta from typing import Any, List, Optional, Dict, Union import gc @@ -10,7 +9,6 @@ import re from functools import wraps from unittest.mock import patch -import requests_cache import responses import posthog @@ -81,10 +79,6 @@ posthog.disabled = True # Disable caching from prompthub to avoid polluting the local environment. os.environ["PROMPTHUB_CACHE_ENABLED"] = "false" -# Cache requests (e.g. huggingface model) to circumvent load protection -# See https://requests-cache.readthedocs.io/en/stable/user_guide/filtering.html -requests_cache.install_cache(urls_expire_after={"huggingface.co": timedelta(hours=1), "*": requests_cache.DO_NOT_CACHE}) - def fail_at_version(target_major, target_minor): """