Skip to content

Commit 842cbcf

Browse files
committed
Pass connection to db_type()
1 parent a0874a2 commit 842cbcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testapp/test_size_fields.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_binaryfield_default_length(self):
5050
# By default, SizedBinaryField should act like BinaryField
5151
field = SizedBinaryField()
5252
assert field.size_class == 4
53-
assert field.db_type(None) == "longblob"
53+
assert field.db_type(connection) == "longblob"
5454

5555
@atomic
5656
def test_binary_1_max_length(self):
@@ -153,7 +153,7 @@ def test_textfield_default_length(self):
153153
# By default, SizedTextField should act like TextField
154154
field = SizedTextField()
155155
assert field.size_class == 4
156-
assert field.db_type(None) == "longtext"
156+
assert field.db_type(connection) == "longtext"
157157

158158
def test_tinytext_max_length(self):
159159
# Okay

0 commit comments

Comments
 (0)