Skip to content

Commit

Permalink
Fix starlette Deprecation Warning
Browse files Browse the repository at this point in the history
DeprecationWarning: The `allow_redirects` argument is deprecated. Use `follow_redirects` instead.
  • Loading branch information
beenje committed Aug 5, 2023
1 parent ad0144f commit dd47fe0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quetz/tests/api/test_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ def test_url_with_slash(auth_client, public_channel, db, remote_session):
response = auth_client.post(
f"/api/channels/{public_channel.name}/mirrors/",
json={"url": mirror_url},
allow_redirects=False,
follow_redirects=False,
)

assert response.status_code == 307
Expand Down
2 changes: 1 addition & 1 deletion quetz/tests/test_mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ def test_proxylist_mirror_channel(owner, client, mirror_mode):

response = client.get(
"/get/mirror-channel-btel/linux-64/nrnpython-0.1-0.tar.bz2",
allow_redirects=False,
follow_redirects=False,
)
assert response.status_code == 307
assert (
Expand Down

0 comments on commit dd47fe0

Please sign in to comment.