build(test_keys.py): improve error message for test

This commit is contained in:
Krrish Dholakia 2024-05-01 08:22:28 -07:00
parent abdae87ba2
commit b9f5b3c1a0

View file

@ -488,7 +488,9 @@ async def test_key_info_spend_values():
)
rounded_response_cost = round(response_cost, 8)
rounded_key_info_spend = round(key_info["info"]["spend"], 8)
assert rounded_response_cost == rounded_key_info_spend
assert (
rounded_response_cost == rounded_key_info_spend
), f"Expected cost= {rounded_response_cost} != Tracked Cost={rounded_key_info_spend}"
@pytest.mark.asyncio