0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Used skipUnlessDBFeature instead of checking vendor in test_filtering_on_annotate_that_uses_q.

This commit is contained in:
Mariusz Felisiak 2019-08-29 09:40:34 +02:00 committed by GitHub
parent c7f656435c
commit 069bee7c12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ class BasicExpressionsTests(TestCase):
companies = Company.objects.annotate(foo=RawSQL('%s', ['value']))
self.assertEqual(companies.count(), 3)
@unittest.skipIf(connection.vendor == 'oracle', "Oracle doesn't support using boolean type in SELECT")
@skipUnlessDBFeature('supports_boolean_expr_in_select_clause')
def test_filtering_on_annotate_that_uses_q(self):
self.assertEqual(
Company.objects.annotate(