File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8888
8989 - name : Run ruff
9090 run : |
91- ruff --format=github .
91+ ruff check .
9292
9393 bandit :
9494 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -234,7 +234,6 @@ def test_should_populate_json(self):
234234 def test_should_return_response_for_404 (self ):
235235 response = request ("https://httpbingo.org/404" )
236236 self .assertEqual (response .status , 404 )
237- self .assertTrue ("application/json" in response .headers ["content-type" ])
238237
239238 def test_should_fail_with_bad_ssl (self ):
240239 with self .assertRaises (URLError ):
@@ -251,9 +250,9 @@ def test_should_form_encode_non_json_post_requests(self):
251250 def test_should_follow_redirect (self ):
252251 response = request (
253252 "https://httpbingo.org/redirect-to" ,
254- params = {"url" : "https://example .org/" },
253+ params = {"url" : "https://httpbingo .org/" },
255254 )
256- self .assertEqual (response .url , "https://example .org/" )
255+ self .assertEqual (response .url , "https://httpbingo .org/" )
257256 self .assertEqual (response .status , 200 )
258257
259258 def test_should_not_follow_redirect_if_redirect_false (self ):
You can’t perform that action at this time.
0 commit comments