test(io): add test to db-pre-config with non-existent function

Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
This commit is contained in:
Taimoor Zaeem
2026-07-07 23:32:40 +05:00
parent c73c676849
commit 6670b1a4b6
+4
View File
@@ -2049,6 +2049,10 @@ def test_db_pre_config_with_pg_reserved_words(defaultenv):
response = postgrest.session.post("/rpc/true") response = postgrest.session.post("/rpc/true")
assert response.status_code == 200 assert response.status_code == 200
def test_db_pre_config_with_non_existent_function(defaultenv):
"Log error when db-pre-config is set to non-existent function"
env = { env = {
**defaultenv, **defaultenv,
"PGRST_DB_PRE_CONFIG": "select", # no "select" function in our fixtures, fail gracefully at startup "PGRST_DB_PRE_CONFIG": "select", # no "select" function in our fixtures, fail gracefully at startup