diff options
| author | Tim Graham <timograham@gmail.com> | 2026-04-16 05:28:19 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-16 11:28:19 +0200 |
| commit | 82a2465f71a1f5cbfe3811952c0d07482dea71c6 (patch) | |
| tree | 8e7fa97a43cb858dff278b87acb7187646c34d51 /django/db | |
| parent | 86cea4145dcd870231ea81f3cfe78fcbe02dbae4 (diff) | |
Added DatabaseFeatures.disallowed_simple_test_case_connection_methods.
Diffstat (limited to 'django/db')
| -rw-r--r-- | django/db/backends/base/features.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/django/db/backends/base/features.py b/django/db/backends/base/features.py index 466f8199bf..0d9178dae8 100644 --- a/django/db/backends/base/features.py +++ b/django/db/backends/base/features.py @@ -431,6 +431,15 @@ class BaseDatabaseFeatures: # that should be skipped for this database. django_test_skips = {} + # DatabaseWrapper methods that should raise an error if accessed in + # django.test.SimpleTestCase. + disallowed_simple_test_case_connection_methods = [ + ("connect", "connections"), + ("temporary_connection", "connections"), + ("cursor", "queries"), + ("chunked_cursor", "queries"), + ] + supports_uuid4_function = False supports_uuid7_function = False supports_uuid7_function_shift = False |
