summaryrefslogtreecommitdiff
path: root/tests/invalid_models_tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-03-18 15:22:13 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-03-18 18:41:40 +0100
commit3f7e4b16bf58f99c71570ba75dc97db8265071be (patch)
treee851a51d907d018724b486843115f14f972755c3 /tests/invalid_models_tests
parent5c8441a0b8787c14b45fb761550571baea48604e (diff)
downloaddjango-3f7e4b16bf58f99c71570ba75dc97db8265071be.tar.gz
Removed redundant get_max_column_name_length() calls in invalid_models_tests.test_models.FieldNamesTests.
Diffstat (limited to 'tests/invalid_models_tests')
-rw-r--r--tests/invalid_models_tests/test_models.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/invalid_models_tests/test_models.py b/tests/invalid_models_tests/test_models.py
index 9fd7058b20..736be8ebe0 100644
--- a/tests/invalid_models_tests/test_models.py
+++ b/tests/invalid_models_tests/test_models.py
@@ -361,8 +361,6 @@ class FieldNamesTests(SimpleTestCase):
#13711 -- Model check for long M2M column names when database has
column name length limits.
"""
- allowed_len, db_alias = get_max_column_name_length()
-
# A model with very long name which will be used to set relations to.
class VeryLongModelNamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz(models.Model):
title = models.CharField(max_length=11)
@@ -455,8 +453,6 @@ class FieldNamesTests(SimpleTestCase):
#13711 -- Model check for long column names
when database does not support long names.
"""
- allowed_len, db_alias = get_max_column_name_length()
-
class ModelWithLongField(models.Model):
title = models.CharField(max_length=11)