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 94b7539 commit 81892feCopy full SHA for 81892fe
tests/schema/test_generate_schema.py
@@ -174,6 +174,11 @@ async def test_create_index(self):
174
sql = self.get_sql("CREATE INDEX")
175
self.assertIsNotNone(re.search(r"idx_tournament_created_\w+", sql))
176
177
+ async def test_create_index_with_custom_name(self):
178
+ await self.init_for("tests.testmodels")
179
+ sql = self.get_sql("f3")
180
+ self.assertIn("model_with_indexes__f3", sql)
181
+
182
async def test_fk_bad_model_name(self):
183
with self.assertRaisesRegex(
184
ConfigurationError, 'ForeignKeyField accepts model name in format "app.Model"'
0 commit comments