From fa58450a9ab8a1bdd2a5090b51b00078fd85ffa6 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 23 Nov 2019 11:08:45 +0000 Subject: Fixed #31468 -- Allowed specifying migration filename in Operation. This adds also suggested filename for many built-in operations. --- tests/postgres_tests/test_operations.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/postgres_tests') diff --git a/tests/postgres_tests/test_operations.py b/tests/postgres_tests/test_operations.py index 8cc9a2b66e..a10f5da440 100644 --- a/tests/postgres_tests/test_operations.py +++ b/tests/postgres_tests/test_operations.py @@ -175,6 +175,7 @@ class CreateExtensionTests(PostgreSQLTestCase): def test_allow_migrate(self): operation = CreateExtension('tablefunc') + self.assertEqual(operation.migration_name_fragment, 'create_extension_tablefunc') project_state = ProjectState() new_state = project_state.clone() # Create an extension. @@ -192,6 +193,7 @@ class CreateExtensionTests(PostgreSQLTestCase): def test_create_existing_extension(self): operation = BloomExtension() + self.assertEqual(operation.migration_name_fragment, 'create_extension_bloom') project_state = ProjectState() new_state = project_state.clone() # Don't create an existing extension. -- cgit v1.3