From 441880c8497d0ce48d0393415fe21cc9e293a115 Mon Sep 17 00:00:00 2001 From: Adam <41971533+jcadam14@users.noreply.github.com> Date: Thu, 28 Dec 2023 17:01:47 -0500 Subject: [PATCH] Removed file storing possible future changes --- tests/entities/repos/config_psqlurl_check.py | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 tests/entities/repos/config_psqlurl_check.py diff --git a/tests/entities/repos/config_psqlurl_check.py b/tests/entities/repos/config_psqlurl_check.py deleted file mode 100644 index 281c8fd..0000000 --- a/tests/entities/repos/config_psqlurl_check.py +++ /dev/null @@ -1,11 +0,0 @@ - @field_validator("inst_conn", mode='before') - @classmethod - def encode_db_password(cls, postgres_dsn, info: FieldValidationInfo) -> Any: - log = logging.getLogger() - pwd = re.search('.*:.*:(.*)@', postgres_dsn) - if pwd: - pwd_str = pwd.group(1) - qout = parse.quote(pwd_str, safe='') - return postgres_dsn.replace(pwd_str, qout) - else: - log.error(f"Postgres DSN did not contain a properly formatted URL: {postgres_dsn}") \ No newline at end of file