diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2020-12-10 18:00:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-10 18:00:57 +0100 |
| commit | 275dd4ebbabbbe758c7219a3d666953d5a7b072f (patch) | |
| tree | d0534f7047f9ba43525368eda2c121df54801d4c /tests/db_functions | |
| parent | 5ce31d6a7142ca8c76d6b52fa42b3406b9a8ff48 (diff) | |
Fixed #32178 -- Allowed database backends to skip tests and mark expected failures.
Co-authored-by: Tim Graham <timograham@gmail.com>
Diffstat (limited to 'tests/db_functions')
| -rw-r--r-- | tests/db_functions/comparison/test_greatest.py | 3 | ||||
| -rw-r--r-- | tests/db_functions/comparison/test_least.py | 3 | ||||
| -rw-r--r-- | tests/db_functions/text/test_sha224.py | 2 |
3 files changed, 2 insertions, 6 deletions
diff --git a/tests/db_functions/comparison/test_greatest.py b/tests/db_functions/comparison/test_greatest.py index ef93d808c2..f11e7b824c 100644 --- a/tests/db_functions/comparison/test_greatest.py +++ b/tests/db_functions/comparison/test_greatest.py @@ -1,6 +1,6 @@ from datetime import datetime, timedelta from decimal import Decimal -from unittest import skipIf, skipUnless +from unittest import skipUnless from django.db import connection from django.db.models.expressions import RawSQL @@ -33,7 +33,6 @@ class GreatestTests(TestCase): articles = Article.objects.annotate(last_updated=Greatest('written', 'published')) self.assertIsNone(articles.first().last_updated) - @skipIf(connection.vendor == 'mysql', "This doesn't work on MySQL") def test_coalesce_workaround(self): past = datetime(1900, 1, 1) now = timezone.now() diff --git a/tests/db_functions/comparison/test_least.py b/tests/db_functions/comparison/test_least.py index de2c543f0b..e0318e25c6 100644 --- a/tests/db_functions/comparison/test_least.py +++ b/tests/db_functions/comparison/test_least.py @@ -1,6 +1,6 @@ from datetime import datetime, timedelta from decimal import Decimal -from unittest import skipIf, skipUnless +from unittest import skipUnless from django.db import connection from django.db.models.expressions import RawSQL @@ -35,7 +35,6 @@ class LeastTests(TestCase): articles = Article.objects.annotate(first_updated=Least('written', 'published')) self.assertIsNone(articles.first().first_updated) - @skipIf(connection.vendor == 'mysql', "This doesn't work on MySQL") def test_coalesce_workaround(self): future = datetime(2100, 1, 1) now = timezone.now() diff --git a/tests/db_functions/text/test_sha224.py b/tests/db_functions/text/test_sha224.py index a8291d416c..d2f1d538dc 100644 --- a/tests/db_functions/text/test_sha224.py +++ b/tests/db_functions/text/test_sha224.py @@ -20,7 +20,6 @@ class SHA224Tests(TestCase): Author(alias=None), ]) - @unittest.skipIf(connection.vendor == 'oracle', "Oracle doesn't support SHA224.") def test_basic(self): authors = Author.objects.annotate( sha224_alias=SHA224('alias'), @@ -37,7 +36,6 @@ class SHA224Tests(TestCase): ], ) - @unittest.skipIf(connection.vendor == 'oracle', "Oracle doesn't support SHA224.") def test_transform(self): with register_lookup(CharField, SHA224): authors = Author.objects.filter( |
