@@ -23,7 +23,12 @@ def test_quota_limiter_configuration() -> None:
2323
2424
2525def test_quota_limiter_configuration_improper_value_1 () -> None :
26- """Test the default configuration."""
26+ """Test the default configuration.
27+
28+ Verify that constructing a QuotaLimiterConfiguration with a negative
29+ `initial_quota` raises a ValueError with message "Input should be greater
30+ than or equal to 0".
31+ """
2732 with pytest .raises (ValueError , match = "Input should be greater than or equal to 0" ):
2833 _ = QuotaLimiterConfiguration (
2934 type = "cluster_limiter" ,
@@ -35,7 +40,14 @@ def test_quota_limiter_configuration_improper_value_1() -> None:
3540
3641
3742def test_quota_limiter_configuration_improper_value_2 () -> None :
38- """Test the default configuration."""
43+ """Test the default configuration.
44+
45+ Verify that providing a negative `quota_increase` raises a ValueError.
46+
47+ Asserts that constructing a QuotaLimiterConfiguration with `quota_increase`
48+ less than zero raises a ValueError with the message "Input should be
49+ greater than or equal to 0".
50+ """
3951 with pytest .raises (ValueError , match = "Input should be greater than or equal to 0" ):
4052 _ = QuotaLimiterConfiguration (
4153 type = "cluster_limiter" ,
@@ -47,7 +59,14 @@ def test_quota_limiter_configuration_improper_value_2() -> None:
4759
4860
4961def test_quota_limiter_configuration_improper_value_3 () -> None :
50- """Test the default configuration."""
62+ """Test the default configuration.
63+
64+ Check that constructing QuotaLimiterConfiguration with an invalid `type`
65+ raises a ValueError with the expected message.
66+
67+ Raises:
68+ ValueError: if `type` is not 'user_limiter' or 'cluster_limiter'.
69+ """
5170 with pytest .raises (
5271 ValueError , match = "Input should be 'user_limiter' or 'cluster_limiter'"
5372 ):
0 commit comments