Removed DatabaseFeatures.validates_explain_options.

Always True since 6723a26e59.
This commit is contained in:
Mariusz Felisiak 2022-04-11 12:58:01 +02:00 committed by GitHub
parent b54fd0e36e
commit b8759093d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 5 deletions

View File

@ -263,10 +263,6 @@ class BaseDatabaseFeatures:
# What formats does the backend EXPLAIN syntax support?
supported_explain_formats = set()
# Does DatabaseOperations.explain_query_prefix() raise ValueError if
# unknown kwargs are passed to QuerySet.explain()?
validates_explain_options = True
# Does the backend support the default parameter in lead() and lag()?
supports_default_in_lead_lag = True

View File

@ -57,7 +57,6 @@ class ExplainTests(TestCase):
f"QuerySet.explain() result is not valid JSON: {e}"
)
@skipUnlessDBFeature("validates_explain_options")
def test_unknown_options(self):
with self.assertRaisesMessage(ValueError, "Unknown options: TEST, TEST2"):
Tag.objects.explain(**{"TEST": 1, "TEST2": 1})