mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #30897 -- Added test for SETTINGS option to Queryset.explain() on PostgreSQL 12+.
This commit is contained in:
committed by
Mariusz Felisiak
parent
a5c5ae7d91
commit
6e9189c080
@@ -58,6 +58,8 @@ class ExplainTests(TestCase):
|
||||
]
|
||||
if connection.features.is_postgresql_10:
|
||||
test_options.append({'summary': True})
|
||||
if connection.features.is_postgresql_12:
|
||||
test_options.append({'settings': True})
|
||||
for options in test_options:
|
||||
with self.subTest(**options), transaction.atomic():
|
||||
with CaptureQueriesContext(connection) as captured_queries:
|
||||
|
||||
Reference in New Issue
Block a user