Skip to content

Commit d553bc6

Browse files
committed
Fix integration test for relaxed input_type validation
The test used "invalid_input_type" which now passes the relaxed identifier regex. Use "123-INVALID!" which actually violates the pattern.
1 parent 527b6e2 commit d553bc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/tests/integration/test_chat_api_error_handling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ def test_interact_invalid_input_type(client, test_user_account_headers):
116116
client.cookies.set("csrf_token", csrf_token)
117117
headers = {**test_user_account_headers, "X-CSRF-Token": csrf_token}
118118

119-
# Try to interact with invalid input type
119+
# Try to interact with input_type that violates the identifier pattern
120120
response = client.post(
121121
f"v1/chat/sessions/{session_token}/interact",
122122
json={
123-
"input_type": "invalid_input_type", # Invalid type
123+
"input_type": "123-INVALID!", # Not a valid identifier
124124
"input": "Hello",
125125
},
126126
headers=headers,

0 commit comments

Comments
 (0)