blob: a1371cab42826af8e62e0d038e736fad02b0fddf (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
from django.db import connection
from django.test import SimpleTestCase
from .fields import CustomTypedField
class TestDbType(SimpleTestCase):
def test_db_parameters_respects_db_type(self):
f = CustomTypedField()
self.assertEqual(f.db_parameters(connection)['type'], 'custom_field')
|