django-clickhouse/tests/test_config.py

15 lines
364 B
Python
Raw Normal View History

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