1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Refs #30897 -- Added test for WAL option to Queryset.explain() on PostgreSQL 13+.

This commit is contained in:
Nick Pope
2020-08-24 10:47:38 +01:00
committed by GitHub
parent bb8f66934d
commit b312421511

View File

@@ -57,6 +57,8 @@ class ExplainTests(TestCase):
test_options.append({'summary': True})
if connection.features.is_postgresql_12:
test_options.append({'settings': True})
if connection.features.is_postgresql_13:
test_options.append({'analyze': True, 'wal': True})
for options in test_options:
with self.subTest(**options), transaction.atomic():
with CaptureQueriesContext(connection) as captured_queries: