Skip to content

Commit 7721808

Browse files
zhansheng.lzsclaude
andcommitted
Fix test_register_functions_failure to match new error propagation
The previous commit (preserve error codes on re-raise) changed register_functions to propagate the inner RegistrationError (error_code=2052) instead of wrapping it in a generic error (error_code=2055). Update the test assertion to check for the original error message and code. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent c925f24 commit 7721808

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/unit/test_agentic_rl_model.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,8 @@ async def test_register_functions_failure(self, agentic_rl_tuning):
242242
with pytest.raises(RegistrationError) as exc_info:
243243
await agentic_rl_tuning.tuning.register_functions()
244244

245-
assert "Function component registration failed" in str(
246-
exc_info.value,
247-
)
245+
assert "Registration failed" in str(exc_info.value)
246+
assert exc_info.value.error_code == 2052
248247

249248
# pylint: disable=redefined-outer-name
250249
@pytest.mark.asyncio

0 commit comments

Comments
 (0)