Skip to content

Commit 5f5671d

Browse files
committed
.
1 parent a982fa6 commit 5f5671d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/unit/test_statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_add_rate_limit_error(attempts: list[int], expected_errors: list[int]) -
2525
def test_add_rate_limit_error_invalid_attempt() -> None:
2626
"""Test that add_rate_limit_error raises ValueError for invalid attempt."""
2727
stats = Statistics()
28-
with pytest.raises(ValueError, match='Attempt must be greater than 0'):
28+
with pytest.raises(ValueError, match=r'Attempt must be greater than 0'):
2929
stats.add_rate_limit_error(0)
3030

3131

tests/unit/test_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ def test_pluck_data() -> None:
2626
assert pluck_data({'a': 'b', 'data': {'b': 'c'}}) == {'b': 'c'}
2727

2828
# throws the right error when it is not
29-
with pytest.raises(ValueError, match='The "data" property is missing in the response.'):
29+
with pytest.raises(ValueError, match=r'The "data" property is missing in the response.'):
3030
pluck_data({'a': 'b'})
31-
with pytest.raises(ValueError, match='The "data" property is missing in the response.'):
31+
with pytest.raises(ValueError, match=r'The "data" property is missing in the response.'):
3232
pluck_data(None)
33-
with pytest.raises(ValueError, match='The "data" property is missing in the response.'):
33+
with pytest.raises(ValueError, match=r'The "data" property is missing in the response.'):
3434
pluck_data('{"a": "b"}')
3535

3636

0 commit comments

Comments
 (0)