1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Refs #24121 -- Added __repr__() to BaseDatabaseWrapper, JoinPromoter, and SQLCompiler.

This commit is contained in:
Jonny Park
2021-03-26 16:14:09 +09:00
committed by Mariusz Felisiak
parent 5e218cc0b7
commit 6fa2930573
6 changed files with 52 additions and 1 deletions

View File

@@ -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