@@ -1724,7 +1724,8 @@ async def test_resource_pools_quota_with_partial_usage(
17241724
17251725 # usage_available should be 3 hours which is 75 percent of the total 4 hours available
17261726 assert resource_class ["usage_available" ] == 3.0
1727- assert resource_class ["usage_available_percentage" ] == 75.0
1727+ # usage_limit_total should be 4 hours (200 credits total limit / 50 credits per hour)
1728+ assert resource_class ["usage_limit_total" ] == 4.0
17281729
17291730
17301731@pytest .mark .asyncio
@@ -1794,8 +1795,8 @@ async def test_resource_pools_quota_with_no_usage(
17941795
17951796 # usage_available should be full quota: 200/50 = 4.0 hours
17961797 assert resource_class ["usage_available" ] == 4.0
1797- # usage_available_percentage should be 100%
1798- assert resource_class ["usage_available_percentage " ] == 100 .0
1798+ # usage_limit_total should be 4 hours (200 credits total limit / 50 credits per hour)
1799+ assert resource_class ["usage_limit_total " ] == 4 .0
17991800
18001801
18011802@pytest .mark .asyncio
@@ -1877,8 +1878,8 @@ async def test_resource_pools_quota_exceeded(
18771878
18781879 # usage_available should be 0 (quota exceeded)
18791880 assert resource_class ["usage_available" ] == 0.0
1880- # usage_available_percentage should be 0%
1881- assert resource_class ["usage_available_percentage " ] == 0 .0
1881+ # usage_limit_total should be 2.0 hours (50 credits/hour * 2 hours = 100 credits limit)
1882+ assert resource_class ["usage_limit_total " ] == 2 .0
18821883
18831884
18841885@pytest .mark .asyncio
@@ -1952,8 +1953,8 @@ async def test_resource_pools_quota_with_no_limits(
19521953
19531954 # usage_available should not exist in the response since it's None
19541955 assert "usage_available" not in resource_class
1955- # usage_available_percentage should not exist in the response since it's None
1956- assert "usage_available_percentage " not in resource_class
1956+ # usage_limit_total should not exist in the response since it's None
1957+ assert "usage_limit_total " not in resource_class
19571958
19581959
19591960@pytest .mark .asyncio
@@ -2031,5 +2032,5 @@ async def test_resource_pools_quota_with_no_costs(
20312032
20322033 # usage_available should not exist in the response since it's None
20332034 assert "usage_available" not in resource_class
2034- # usage_available_percentage should not exist in the response since it's None
2035- assert "usage_available_percentage " not in resource_class
2035+ # usage_limit_total should not exist in the response since it's None
2036+ assert "usage_limit_total " not in resource_class
0 commit comments