Skip to content

Commit 19afee7

Browse files
committed
feat: update python test to check for unconfigured error message
1 parent 8f600d3 commit 19afee7

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

tests/python/tests/test_error_messages.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@ def test_encrypted_column_with_no_configuration():
5454

5555
sql = "INSERT INTO unconfigured (id, encrypted_unconfigured) VALUES (%s, %s)"
5656

57-
# This is EQL catching the error and returning it. Details are in docs/errors.md
58-
# When mapping errors are enabled, (enable_mapping_errors or CS_DEVELOPMENT__ENABLE_MAPPING_ERRORS)
59-
# Proxy will return an error that says "Column X in table Y has no Encrypt configuration"
60-
with pytest.raises(psycopg.Error, match=r"Encrypted column missing \w+ \(\w+\) field"):
57+
with pytest.raises(psycopg.Error, match=r"Column 'encrypted_unconfigured' in table 'unconfigured' has no Encrypt configuration."):
6158
cursor.execute(sql, [id, val])
6259

6360

0 commit comments

Comments
 (0)