Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import pytest
from django.core.cache import cache
from django.test import override_settings
from django.urls import reverse
from testfixtures import LogCapture

Expand All @@ -18,6 +19,12 @@ def test_authentication_required(self, client):
response = client.get(self.list_path)
assert response.status_code == 401

@override_settings(CACHES={
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'currency-test',
},
})
def test_get(self, admin_client, django_cache, responses, settings): # pylint: disable=unused-argument
settings.OPENEXCHANGERATES_API_KEY = 'test'
cache_key = exchange_rate_cache_key()
Expand Down
Loading