fix: removed TODO marks
This commit is contained in:
parent
c19e844516
commit
7df4185f87
2 changed files with 0 additions and 16 deletions
|
|
@ -448,10 +448,6 @@ def get_site_config(sites_path: str | None = None, site_path: str | None = None)
|
|||
# read password
|
||||
config["db_password"] = os.environ.get("FRAPPE_DB_PASSWORD") or config.get("db_password")
|
||||
|
||||
# TODO: possible after pg schema isluation fixes (PR 27000)
|
||||
# if config["db_type"] == "postgres":
|
||||
# config["db_schema"] = os.environ.get("FRAPPE_DB_PG_SCHEMA") or config.get("db_schema")
|
||||
|
||||
# Allow externally extending the config with hooks
|
||||
if extra_config := config.get("extra_config"):
|
||||
if isinstance(extra_config, str):
|
||||
|
|
|
|||
|
|
@ -1160,18 +1160,6 @@ class TestDbConnectWithEnvCredentials(FrappeTestCase):
|
|||
|
||||
self.assertTrue(re.search("(port 1111 failed|Errno 111)", str(cm.exception)))
|
||||
|
||||
# TODO: possible after pg schema isluation fixes (PR 27000)
|
||||
# # with wrong postgres schema
|
||||
# with set_env_variable("FRAPPE_DB_PG_SCHEMA", "pg_schema"):
|
||||
# frappe.init(self.current_site, force=True)
|
||||
# frappe.connect()
|
||||
|
||||
# if frappe.conf.get("db_type") == db_type_is.POSTGRES.value:
|
||||
# self.assertEqual(frappe.conf.get("db_schema"), "pg_schema")
|
||||
# else:
|
||||
# # for mariadb this env should not have any effect
|
||||
# self.assertIsNone(frappe.conf.get("db_schema"))
|
||||
|
||||
# now with configured settings without any influences from env
|
||||
# finally connect should work without any error (when no wrong credentials are given via ENV)
|
||||
frappe.init(self.current_site, force=True)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue