diff options
| author | django-bot <ops@djangoproject.com> | 2022-02-03 20:24:19 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-07 20:37:05 +0100 |
| commit | 9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch) | |
| tree | f0506b668a013d0063e5fba3dbf4863b466713ba /tests/backends/sqlite/test_features.py | |
| parent | f68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff) | |
Refs #33476 -- Reformatted code with Black.
Diffstat (limited to 'tests/backends/sqlite/test_features.py')
| -rw-r--r-- | tests/backends/sqlite/test_features.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/backends/sqlite/test_features.py b/tests/backends/sqlite/test_features.py index 9b74794408..50ccbbd3cc 100644 --- a/tests/backends/sqlite/test_features.py +++ b/tests/backends/sqlite/test_features.py @@ -4,14 +4,14 @@ from django.db import OperationalError, connection from django.test import TestCase -@skipUnless(connection.vendor == 'sqlite', 'SQLite tests.') +@skipUnless(connection.vendor == "sqlite", "SQLite tests.") class FeaturesTests(TestCase): def test_supports_json_field_operational_error(self): - if hasattr(connection.features, 'supports_json_field'): + if hasattr(connection.features, "supports_json_field"): del connection.features.supports_json_field - msg = 'unable to open database file' + msg = "unable to open database file" with mock.patch( - 'django.db.backends.base.base.BaseDatabaseWrapper.cursor', + "django.db.backends.base.base.BaseDatabaseWrapper.cursor", side_effect=OperationalError(msg), ): with self.assertRaisesMessage(OperationalError, msg): |
