We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0874a2 commit 842cbcfCopy full SHA for 842cbcf
tests/testapp/test_size_fields.py
@@ -50,7 +50,7 @@ def test_binaryfield_default_length(self):
50
# By default, SizedBinaryField should act like BinaryField
51
field = SizedBinaryField()
52
assert field.size_class == 4
53
- assert field.db_type(None) == "longblob"
+ assert field.db_type(connection) == "longblob"
54
55
@atomic
56
def test_binary_1_max_length(self):
@@ -153,7 +153,7 @@ def test_textfield_default_length(self):
153
# By default, SizedTextField should act like TextField
154
field = SizedTextField()
155
156
- assert field.db_type(None) == "longtext"
+ assert field.db_type(connection) == "longtext"
157
158
def test_tinytext_max_length(self):
159
# Okay
0 commit comments