Skip to content

Commit

Permalink
Merge pull request #97 from freedomofpress/fix-tests
Browse files Browse the repository at this point in the history
Fix unofficial_status test on Python 3.9+
  • Loading branch information
cfm authored Mar 23, 2022
2 parents 1736119 + 2ad0552 commit e366f66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fixtures/proxy_unofficial_status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ interactions:
Server:
- BaseHTTP/0.6 Python/3.7.3
status:
code: 418
code: 499
message: ''
version: 1
2 changes: 1 addition & 1 deletion tests/test_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def test_unofficial_status(self):
p = proxy.Proxy(self.conf_path, req)
p.proxy()

self.assertEqual(p.res.status, 418)
self.assertEqual(p.res.status, 499)
self.assertIn("application/json", p.res.headers["Content-Type"])
body = json.loads(p.res.body)
self.assertEqual(body["error"], "unspecified server error")
Expand Down

0 comments on commit e366f66

Please sign in to comment.