Skip to content

Commit

Permalink
Remove requests_cache in tests (#5285)
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanocerza authored Jul 6, 2023
1 parent ad60727 commit a1a3900
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import warnings
from datetime import timedelta
from typing import Any, List, Optional, Dict, Union

import gc
Expand All @@ -10,7 +9,6 @@
from functools import wraps
from unittest.mock import patch

import requests_cache
import responses
import posthog

Expand Down Expand Up @@ -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):
"""
Expand Down

0 comments on commit a1a3900

Please sign in to comment.