diff options
| author | Jonny Park <jonnythebard9@gmail.com> | 2021-03-26 16:14:09 +0900 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-11-19 07:57:02 +0100 |
| commit | 6fa2930573ff862a7f8ae8a11aa8bb7253fddeb7 (patch) | |
| tree | ff653eb83f687bb48ed479c6ba5106ea59c0fec4 /tests/backends/base | |
| parent | 5e218cc0b704ebf64c460050a97b5fafe63e92b0 (diff) | |
Refs #24121 -- Added __repr__() to BaseDatabaseWrapper, JoinPromoter, and SQLCompiler.
Diffstat (limited to 'tests/backends/base')
| -rw-r--r-- | tests/backends/base/test_base.py | 7 |
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 |
