Skip to content

Commit 5eab3c4

Browse files
maxprilutskiyclaude
andcommitted
fix: update test to match improved error message format
- Updated test_localize_chunk_bad_request to expect status code in error message - Ensures test matches the improved error message format from previous fix 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 924b2dc commit 5eab3c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def test_localize_chunk_bad_request(self, mock_post):
159159
mock_response.reason = "Bad Request"
160160
mock_post.return_value = mock_response
161161

162-
with pytest.raises(ValueError, match="Invalid request"):
162+
with pytest.raises(ValueError, match="Invalid request \\(400\\)"):
163163
self.engine._localize_chunk(
164164
"en", "es", {"data": {"key": "value"}}, "workflow_id", False
165165
)

0 commit comments

Comments
 (0)