diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2013-09-29 14:03:46 -0700 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-09-29 17:10:54 -0400 |
| commit | 38e71f52eceda944bc167f347fba6386c30a3e39 (patch) | |
| tree | 1f574f7ae62352a457dcfe5d9e8eea538bf37c92 /test/engine | |
| parent | 3e947c2c06abbcf4ea8df63f79e1efcfc367bd61 (diff) | |
| download | sqlalchemy-38e71f52eceda944bc167f347fba6386c30a3e39.tar.gz | |
Merge pull request #25 from gthb/ticket_2821
Hide password in URL and Engine __repr__
Conflicts:
lib/sqlalchemy/engine/url.py
Diffstat (limited to 'test/engine')
| -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 437cccbe4..b7edb655c 100644 --- a/test/engine/test_parseconnect.py +++ b/test/engine/test_parseconnect.py @@ -278,6 +278,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""" |
