summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/migrations/0001_setup_extensions.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/postgres_tests/migrations/0001_setup_extensions.py')
-rw-r--r--tests/postgres_tests/migrations/0001_setup_extensions.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/postgres_tests/migrations/0001_setup_extensions.py b/tests/postgres_tests/migrations/0001_setup_extensions.py
index d090ff7fd6..b00c6c0838 100644
--- a/tests/postgres_tests/migrations/0001_setup_extensions.py
+++ b/tests/postgres_tests/migrations/0001_setup_extensions.py
@@ -4,13 +4,14 @@ from django.db import migrations
try:
from django.contrib.postgres.operations import (
- BtreeGinExtension, CITextExtension, CreateExtension, HStoreExtension,
- TrigramExtension, UnaccentExtension,
+ BtreeGinExtension, CITextExtension, CreateExtension, CryptoExtension,
+ HStoreExtension, TrigramExtension, UnaccentExtension,
)
except ImportError:
BtreeGinExtension = mock.Mock()
CITextExtension = mock.Mock()
CreateExtension = mock.Mock()
+ CryptoExtension = mock.Mock()
HStoreExtension = mock.Mock()
TrigramExtension = mock.Mock()
UnaccentExtension = mock.Mock()
@@ -24,6 +25,7 @@ class Migration(migrations.Migration):
# Ensure CreateExtension quotes extension names by creating one with a
# dash in its name.
CreateExtension('uuid-ossp'),
+ CryptoExtension(),
HStoreExtension(),
TrigramExtension(),
UnaccentExtension(),