test(proxy): match ProxyException code string type in add_new_model test

This commit is contained in:
aoright 2026-09-28 15:07:00 +08:00
parent 021b68fb8b
commit cd4b188c85

View file

@ -5919,7 +5919,7 @@ class TestStrategyRouterWriteValidation:
),
user_api_key_dict=admin,
)
assert exc_info.value.code == 400
assert str(exc_info.value.code) == "400"
assert "not a supported or routable provider" in str(
exc_info.value.message
) or "not a routable provider" in str(exc_info.value.message)