summaryrefslogtreecommitdiff
path: root/tests/backends
diff options
context:
space:
mode:
Diffstat (limited to 'tests/backends')
-rw-r--r--tests/backends/base/test_base.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/backends/base/test_base.py b/tests/backends/base/test_base.py
index f89aec57f0..b07d6d3ceb 100644
--- a/tests/backends/base/test_base.py
+++ b/tests/backends/base/test_base.py
@@ -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