import pytest
from django.core.cache import cache


@pytest.fixture(autouse=True)
def clear_cache():
    cache.clear()


@pytest.fixture
def no_requests(monkeypatch):
    monkeypatch.delattr('requests.sessions.Session.request')
