summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_bulk_update.py
diff options
context:
space:
mode:
authorDavid Smith <smithdc@gmail.com>2022-02-12 20:40:12 +0000
committerCarlton Gibson <carlton@noumenal.es>2022-03-15 16:23:55 +0100
commit3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc (patch)
tree8ab2c436451318223606470fcdc23b6dc690da20 /tests/postgres_tests/test_bulk_update.py
parent3eaba13a476c14b75429ba34180184b81997b33a (diff)
Fixed #31169 -- Adapted the parallel test runner to use spawn.
Co-authored-by: Valz <ahmadahussein0@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk>
Diffstat (limited to 'tests/postgres_tests/test_bulk_update.py')
-rw-r--r--tests/postgres_tests/test_bulk_update.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/postgres_tests/test_bulk_update.py b/tests/postgres_tests/test_bulk_update.py
index f0b473efa7..5f91f77791 100644
--- a/tests/postgres_tests/test_bulk_update.py
+++ b/tests/postgres_tests/test_bulk_update.py
@@ -1,5 +1,7 @@
from datetime import date
+from django.test import modify_settings
+
from . import PostgreSQLTestCase
from .models import (
HStoreModel,
@@ -16,6 +18,7 @@ except ImportError:
pass # psycopg2 isn't installed.
+@modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"})
class BulkSaveTests(PostgreSQLTestCase):
def test_bulk_update(self):
test_data = [