diff options
author | Gunnlaugur Þór Briem <gunnlaugur@gmail.com> | 2013-09-06 17:55:19 +0000 |
---|---|---|
committer | Gunnlaugur Þór Briem <gunnlaugur@gmail.com> | 2013-09-06 17:57:04 +0000 |
commit | 610684bb080095dcd8a2ca6cef1ff45787e4bdcf (patch) | |
tree | b73db4a741dde2aee643bbf256f243a15f1e7522 /test/engine/test_parseconnect.py | |
parent | e8167548429b9d4937caaa09740ffe9bdab1ef61 (diff) | |
download | sqlalchemy-pr/25.tar.gz |
Hide password in URL and Engine __repr__pr/25
Fixes #2821
Diffstat (limited to 'test/engine/test_parseconnect.py')
-rw-r--r-- | test/engine/test_parseconnect.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/engine/test_parseconnect.py b/test/engine/test_parseconnect.py index 106bd0782..f56c844f0 100644 --- a/test/engine/test_parseconnect.py +++ b/test/engine/test_parseconnect.py @@ -277,6 +277,10 @@ pool_timeout=10 assert e.url.drivername == e2.url.drivername == 'mysql' assert e.url.username == e2.url.username == 'scott' assert e2.url is u + assert str(u) == 'mysql://scott:tiger@localhost/test' + assert repr(u) == 'mysql://scott:***@localhost/test' + assert repr(e) == 'Engine(mysql://scott:***@localhost/test)' + assert repr(e2) == 'Engine(mysql://scott:***@localhost/test)' def test_poolargs(self): """test that connection pool args make it thru""" |