summaryrefslogtreecommitdiff
path: root/tests/schema
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-11-12 20:34:10 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-11-14 15:45:43 +0100
commitde4884b114534f43c49cf8c5b7f10181e737f4e9 (patch)
tree2cd85a6b459622381ed0c2c7f49bf71b80a98cfb /tests/schema
parent6364b6ee1071381eb3a23ba6b821fc0d6f0fce75 (diff)
Reverted "Refs #30446, Refs #34944 -- Fixed crash when adding GeneratedField with string Value()."
This reverts commit 8b1acc0440418ac8f45ba48e2dfcf5126c83341b.
Diffstat (limited to 'tests/schema')
-rw-r--r--tests/schema/tests.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/schema/tests.py b/tests/schema/tests.py
index 1298b32caf..72f90c934b 100644
--- a/tests/schema/tests.py
+++ b/tests/schema/tests.py
@@ -844,23 +844,6 @@ class SchemaTests(TransactionTestCase):
@isolate_apps("schema")
@skipUnlessDBFeature("supports_stored_generated_columns")
- def test_add_generated_field_with_string_value(self):
- class GeneratedFieldStringValueModel(Model):
- value = GeneratedField(expression=Value("static string"), db_persist=True)
-
- class Meta:
- app_label = "schema"
-
- with CaptureQueriesContext(connection) as ctx:
- with connection.schema_editor() as editor:
- editor.create_model(GeneratedFieldStringValueModel)
- self.assertIs(
- any("None" in query["sql"] for query in ctx.captured_queries),
- False,
- )
-
- @isolate_apps("schema")
- @skipUnlessDBFeature("supports_stored_generated_columns")
def test_add_generated_field_with_output_field(self):
class GeneratedFieldOutputFieldModel(Model):
price = DecimalField(max_digits=7, decimal_places=2)