mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
fix(backend): use plain string for host in test_input to fix JSON schema validation
The test_input host value should be a plain string (Pydantic coerces it to SecretStr), not a SecretStr object which serializes as '**********' and fails JSON schema validation in the block test framework.
This commit is contained in:
@@ -350,7 +350,7 @@ class SQLQueryBlock(Block):
|
||||
test_input={
|
||||
"query": "SELECT 1 AS test_col",
|
||||
"database_type": DatabaseType.POSTGRES,
|
||||
"host": SecretStr("localhost"),
|
||||
"host": "localhost",
|
||||
"port": 5432,
|
||||
"database": "test_db",
|
||||
"timeout": 30,
|
||||
|
||||
Reference in New Issue
Block a user