Skip to content

Commit 7cff74f

Browse files
authored
should fix tests
1 parent a8c2537 commit 7cff74f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/core_tests/util_tests/test_web.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,29 +121,29 @@ def test_shorten(mock_requests):
121121

122122
mock_requests.add(
123123
"POST",
124-
"http://git.io",
124+
"https://git.io",
125125
status=400,
126126
)
127127
with pytest.raises(web.ServiceHTTPError):
128128
web.shorten("https://example.com", service="git.io")
129129

130-
mock_requests.replace("POST", "http://git.io", body="error")
130+
mock_requests.replace("POST", "https://git.io", body="error")
131131
with pytest.raises(web.ServiceHTTPError):
132132
web.shorten("https://example.com", service="git.io")
133133

134-
mock_requests.replace("POST", "http://git.io", body="error")
134+
mock_requests.replace("POST", "https://git.io", body="error")
135135
with pytest.raises(web.ServiceHTTPError):
136136
web.shorten("https://example.com", service="git.io")
137137

138138
mock_requests.replace(
139139
"POST",
140-
"http://git.io",
141-
headers={"Location": "http://git.io/foobar123"},
140+
"https://git.io",
141+
headers={"Location": "https://git.io/foobar123"},
142142
status=requests.codes.created,
143143
)
144144
assert (
145145
web.shorten("https://example.com", service="git.io")
146-
== "http://git.io/foobar123"
146+
== "https://git.io/foobar123"
147147
)
148148

149149
with pytest.raises(web.ServiceHTTPError):

0 commit comments

Comments
 (0)