Skip to content

Commit

Permalink
Merge pull request #975 from dandi/gh-966
Browse files Browse the repository at this point in the history
Update `test_follow_redirect`
  • Loading branch information
yarikoptic authored Apr 21, 2022
2 parents 00ee4dd + 0ba5920 commit 1a09bea
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 1a09bea

Please sign in to comment.