Skip to content

Commit

Permalink
refactor: tidy up redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
danjac committed Jan 10, 2025
1 parent 3c71b97 commit 8cd7044
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions radiofeed/tests/asserts.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

def assert_status(response: HttpResponse, status: http.HTTPStatus) -> None:
"""Assert that the response has the expected status code."""
assert (
response.status_code == status
), f"Expected status {status}, but got {response.status_code}"
assert response.status_code == status, (
f"Expected status {status}, but got {response.status_code}"
)


assert200 = functools.partial(assert_status, status=http.HTTPStatus.OK)
Expand Down

0 comments on commit 8cd7044

Please sign in to comment.