mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #24121 -- Added __repr__() to BaseDatabaseWrapper, JoinPromoter, and SQLCompiler.
This commit is contained in:
committed by
Mariusz Felisiak
parent
5e218cc0b7
commit
6fa2930573
@@ -9,6 +9,13 @@ from ..models import Square
|
||||
|
||||
class DatabaseWrapperTests(SimpleTestCase):
|
||||
|
||||
def test_repr(self):
|
||||
conn = connections[DEFAULT_DB_ALIAS]
|
||||
self.assertEqual(
|
||||
repr(conn),
|
||||
f"<DatabaseWrapper vendor={connection.vendor!r} alias='default'>",
|
||||
)
|
||||
|
||||
def test_initialization_class_attributes(self):
|
||||
"""
|
||||
The "initialization" class attributes like client_class and
|
||||
|
||||
Reference in New Issue
Block a user