Skip to content

Commit

Permalink
Update test_follow_redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Apr 21, 2022
1 parent 00ee4dd commit 0ba5920
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dandi/tests/test_dandiarchive.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import re

import pytest
import responses

Expand Down Expand Up @@ -329,10 +331,8 @@ def test_parse_dandi_url_not_found() -> None:

@mark.skipif_no_network
def test_follow_redirect() -> None:
assert (
follow_redirect("https://bit.ly/dandi12")
== "https://gui.dandiarchive.org/#/file-browser/folder/5e72b6ac3da50caa9adb0498"
)
url = follow_redirect("https://bit.ly/dandi12")
assert re.match(r"https://(.*\.)?dandiarchive.org", url)


@responses.activate
Expand Down

0 comments on commit 0ba5920

Please sign in to comment.