Skip to content

Commit 3b4e7b5

Browse files
committed
fix: update tests, example.org is now behind cloudflare
1 parent c82f533 commit 3b4e7b5

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
8989
- name: Run ruff
9090
run: |
91-
ruff --format=github .
91+
ruff check .
9292
9393
bandit:
9494
runs-on: ubuntu-latest

thttp.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)