1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: