django-clickhouse/tests/test_config.py

16 lines
384 B
Python
Raw Permalink Normal View History

2018-11-12 18:20:46 +03:00
from django.test import TestCase
from django_clickhouse.configuration import config
2018-11-12 18:20:46 +03:00
class ConfigTest(TestCase):
def test_default(self):
self.assertEqual(5, config.SYNC_DELAY)
def test_value(self):
self.assertEqual(5000, config.SYNC_BATCH_SIZE)
2018-11-12 18:20:46 +03:00
def test_not_lib_prop(self):
with self.assertRaises(AttributeError):
2018-11-16 11:14:40 +03:00
config.SECRET_KEY