mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
16 lines
471 B
Python
16 lines
471 B
Python
from django.test import TestCase
|
|
|
|
from constance import settings
|
|
from tests.storage import StorageTestsMixin
|
|
|
|
|
|
class TestMemory(StorageTestsMixin, TestCase):
|
|
def setUp(self):
|
|
self.old_backend = settings.BACKEND
|
|
settings.BACKEND = "constance.backends.memory.MemoryBackend"
|
|
super().setUp()
|
|
self.config._backend._storage = {}
|
|
|
|
def tearDown(self):
|
|
self.config._backend._storage = {}
|
|
settings.BACKEND = self.old_backend
|