Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ dev = [
"pytest~=8.4.0",
"pytest-httpserver~=1.1.0",
"redbaron~=0.9.0",
"ruff~=0.12.0",
"ruff~=0.13.0",
"setuptools", # setuptools are used by pytest but not explicitly required
"types-colorama~=0.4.15.20240106",
"werkzeug~=3.1.0", # Werkzeug is used by pytest-httpserver
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_add_rate_limit_error(attempts: list[int], expected_errors: list[int]) -
def test_add_rate_limit_error_invalid_attempt() -> None:
"""Test that add_rate_limit_error raises ValueError for invalid attempt."""
stats = Statistics()
with pytest.raises(ValueError, match='Attempt must be greater than 0'):
with pytest.raises(ValueError, match=r'Attempt must be greater than 0'):
stats.add_rate_limit_error(0)


Expand Down
6 changes: 3 additions & 3 deletions tests/unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ def test_pluck_data() -> None:
assert pluck_data({'a': 'b', 'data': {'b': 'c'}}) == {'b': 'c'}

# throws the right error when it is not
with pytest.raises(ValueError, match='The "data" property is missing in the response.'):
with pytest.raises(ValueError, match=r'The "data" property is missing in the response.'):
pluck_data({'a': 'b'})
with pytest.raises(ValueError, match='The "data" property is missing in the response.'):
with pytest.raises(ValueError, match=r'The "data" property is missing in the response.'):
pluck_data(None)
with pytest.raises(ValueError, match='The "data" property is missing in the response.'):
with pytest.raises(ValueError, match=r'The "data" property is missing in the response.'):
pluck_data('{"a": "b"}')


Expand Down
46 changes: 23 additions & 23 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading