File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
tests/core_tests/util_tests Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -121,29 +121,29 @@ def test_shorten(mock_requests):
121
121
122
122
mock_requests .add (
123
123
"POST" ,
124
- "http ://git.io" ,
124
+ "https ://git.io" ,
125
125
status = 400 ,
126
126
)
127
127
with pytest .raises (web .ServiceHTTPError ):
128
128
web .shorten ("https://example.com" , service = "git.io" )
129
129
130
- mock_requests .replace ("POST" , "http ://git.io" , body = "error" )
130
+ mock_requests .replace ("POST" , "https ://git.io" , body = "error" )
131
131
with pytest .raises (web .ServiceHTTPError ):
132
132
web .shorten ("https://example.com" , service = "git.io" )
133
133
134
- mock_requests .replace ("POST" , "http ://git.io" , body = "error" )
134
+ mock_requests .replace ("POST" , "https ://git.io" , body = "error" )
135
135
with pytest .raises (web .ServiceHTTPError ):
136
136
web .shorten ("https://example.com" , service = "git.io" )
137
137
138
138
mock_requests .replace (
139
139
"POST" ,
140
- "http ://git.io" ,
141
- headers = {"Location" : "http ://git.io/foobar123" },
140
+ "https ://git.io" ,
141
+ headers = {"Location" : "https ://git.io/foobar123" },
142
142
status = requests .codes .created ,
143
143
)
144
144
assert (
145
145
web .shorten ("https://example.com" , service = "git.io" )
146
- == "http ://git.io/foobar123"
146
+ == "https ://git.io/foobar123"
147
147
)
148
148
149
149
with pytest .raises (web .ServiceHTTPError ):
You can’t perform that action at this time.
0 commit comments