Skip to content
Prev Previous commit
Next Next commit
fix black
  • Loading branch information
ninghu committed Oct 29, 2024
commit 837652b1e2461e74010ab06bd73697379116ff64
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,8 @@ async def test_ensure_service_availability_service_unavailable(self, client_mock
async def test_ensure_service_availability_exception_capability_unavailable(self, client_mock):
with pytest.raises(Exception) as exc_info:
_ = await ensure_service_availability("dummy_url", "dummy_token", capability="does not exist")
assert (
"The needed capability 'does not exist' is not supported by the RAI service in this region"
in str(exc_info._excinfo[1])
assert "The needed capability 'does not exist' is not supported by the RAI service in this region" in str(
exc_info._excinfo[1]
)
assert client_mock._mock_await_count == 1

Expand Down