13 lines
378 B
Python
13 lines
378 B
Python
from app.infra.db.dynamic_manager import ProjectConnectionManager
|
|
|
|
|
|
def test_normalize_pg_url_preserves_password():
|
|
manager = ProjectConnectionManager()
|
|
|
|
url = manager._normalize_pg_url(
|
|
"postgresql://tjwater:secret@192.168.1.114:5433/tjwater"
|
|
)
|
|
|
|
assert url == "postgresql+psycopg://tjwater:secret@192.168.1.114:5433/tjwater"
|
|
assert "***" not in url
|