mirror of https://github.com/django/django.git
12 lines
307 B
Python
12 lines
307 B
Python
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')
|