summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'tests/postgres_tests/migrations')
-rw-r--r--tests/postgres_tests/migrations/0001_setup_extensions.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/postgres_tests/migrations/0001_setup_extensions.py b/tests/postgres_tests/migrations/0001_setup_extensions.py
index d0a21791ba..5064f7ff99 100644
--- a/tests/postgres_tests/migrations/0001_setup_extensions.py
+++ b/tests/postgres_tests/migrations/0001_setup_extensions.py
@@ -1,6 +1,6 @@
from unittest import mock
-from django.db import connection, migrations
+from django.db import migrations
try:
from django.contrib.postgres.operations import (
@@ -23,11 +23,7 @@ except ImportError:
class Migration(migrations.Migration):
operations = [
- (
- BloomExtension()
- if getattr(connection.features, 'has_bloom_index', False)
- else mock.Mock()
- ),
+ BloomExtension(),
BtreeGinExtension(),
BtreeGistExtension(),
CITextExtension(),