summaryrefslogtreecommitdiff
path: root/tests/postgres_tests
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2019-11-23 11:08:45 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-05-28 11:42:53 +0200
commitfa58450a9ab8a1bdd2a5090b51b00078fd85ffa6 (patch)
tree564cf0f25dda6c27ef94c57f276db42cf61abbd2 /tests/postgres_tests
parent5bd585a82dd963b3d8fdac2b37ff5276f71c5b27 (diff)
Fixed #31468 -- Allowed specifying migration filename in Operation.
This adds also suggested filename for many built-in operations.
Diffstat (limited to 'tests/postgres_tests')
-rw-r--r--tests/postgres_tests/test_operations.py2
1 files changed, 2 insertions, 0 deletions
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.