Skip to content

Commit baabd17

Browse files
committed
test(io): add test to db-pre-config with non-existent function
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
1 parent 919f56a commit baabd17

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/io/test_io.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2049,6 +2049,10 @@ def test_db_pre_config_with_pg_reserved_words(defaultenv):
20492049
response = postgrest.session.post("/rpc/true")
20502050
assert response.status_code == 200
20512051

2052+
2053+
def test_db_pre_config_with_non_existent_function(defaultenv):
2054+
"Log error when db-pre-config is set to non-existent function"
2055+
20522056
env = {
20532057
**defaultenv,
20542058
"PGRST_DB_PRE_CONFIG": "select", # no "select" function in our fixtures, fail gracefully at startup

0 commit comments

Comments
 (0)