summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-09-23 10:44:17 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2022-09-23 10:44:17 -0400
commitaf3f6d75764b87e1021aecde0019fd5f986946ae (patch)
tree5ae146f9d5e0553e6e3c1c93d4081928abf90b5e /tests
parent0e83fddb6c110bf1658564c248ffad9163a365fa (diff)
downloadalembic-af3f6d75764b87e1021aecde0019fd5f986946ae.tar.gz
use SQLAlchemy built-in password obfuscation
As str(url) will be changing to obfuscate the PW, use SQLA 1.3 / 1.4 / 2.0 functionality directly. Change-Id: I4694cc6d2ed7f0463fe0fae8a93ee9ec5df74760 References: https://github.com/sqlalchemy/sqlalchemy/issues/8567
Diffstat (limited to 'tests')
-rw-r--r--tests/test_command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_command.py b/tests/test_command.py
index af507cb..0c0ce37 100644
--- a/tests/test_command.py
+++ b/tests/test_command.py
@@ -256,7 +256,7 @@ class CurrentTest(_BufMixin, TestBase):
def test_current_obfuscate_password(self):
eq_(
util.obfuscate_url_pw("postgresql://scott:tiger@localhost/test"),
- "postgresql://scott:XXXXX@localhost/test",
+ "postgresql://scott:***@localhost/test",
)
def test_two_heads(self):