mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #24121 -- Added __repr__() to BaseDatabaseWrapper, JoinPromoter, and SQLCompiler.
This commit is contained in:
parent
5e218cc0b7
commit
6fa2930573
6 changed files with 52 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue