mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-17 06:50:23 +00:00
15 lines
410 B
Python
15 lines
410 B
Python
from django.test import TestCase
|
|
|
|
from constance import settings
|
|
from tests.storage import StorageTestsMixin
|
|
|
|
|
|
class TestDatabase(StorageTestsMixin, TestCase):
|
|
|
|
def setUp(self):
|
|
super(TestDatabase, self).setUp()
|
|
self.old_backend = settings.BACKEND
|
|
settings.BACKEND = 'constance.backends.database.DatabaseBackend'
|
|
|
|
def tearDown(self):
|
|
settings.BACKEND = self.old_backend
|