From 835ef0807bc054eef3b6f55abc894ab1c92b22b0 Mon Sep 17 00:00:00 2001 From: Silvano Cerza Date: Thu, 6 Jul 2023 11:48:21 +0200 Subject: [PATCH] Remove requests_cache in tests --- test/conftest.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/conftest.py b/test/conftest.py index 15ca907ded..e345561ff4 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 @@ from functools import wraps from unittest.mock import patch -import requests_cache import responses import posthog @@ -81,10 +79,6 @@ # 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): """