summaryrefslogtreecommitdiff
path: root/tests/model_fields/test_autofield.py
diff options
context:
space:
mode:
authorDavid-Wobrock <david.wobrock@gmail.com>2020-11-02 08:20:15 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-11-02 20:11:58 +0100
commit4ebd633350ac07091a23c0f0c3eac3aa691cab05 (patch)
treecaf32af81880cff8b87f9daf99daa92857aabbbf /tests/model_fields/test_autofield.py
parentd1791539a7d86739cd44c909fa8239cae7f85874 (diff)
Refs #32132 -- Added rel_db_type() tests for auto and integer fields.
Diffstat (limited to 'tests/model_fields/test_autofield.py')
-rw-r--r--tests/model_fields/test_autofield.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/model_fields/test_autofield.py b/tests/model_fields/test_autofield.py
index db8e79e34b..646cd2ab0a 100644
--- a/tests/model_fields/test_autofield.py
+++ b/tests/model_fields/test_autofield.py
@@ -9,14 +9,17 @@ from .test_integerfield import (
class AutoFieldTests(IntegerFieldTests):
model = AutoModel
+ rel_db_type_class = models.IntegerField
class BigAutoFieldTests(BigIntegerFieldTests):
model = BigAutoModel
+ rel_db_type_class = models.BigIntegerField
class SmallAutoFieldTests(SmallIntegerFieldTests):
model = SmallAutoModel
+ rel_db_type_class = models.SmallIntegerField
class AutoFieldInheritanceTests(SimpleTestCase):