Skip to content

Commit

Permalink
Fix #96 - Flask no longer treats redirects as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Riensche committed Jun 3, 2019
1 parent a52d054 commit a879f10
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/test_rebar.py
Expand Up @@ -610,11 +610,9 @@ def test_redirects_for_missing_trailing_slash(self):
app.debug = False
resp = app.test_client().get(path="/with_trailing_slash")
self.assertIn(resp.status_code, (301, 308))
self.assertEqual(resp.content_type, "application/json")
self.assertTrue(resp.headers["Location"].endswith("/with_trailing_slash/"))

app.debug = True
resp = app.test_client().get(path="/with_trailing_slash")
self.assertIn(resp.status_code, (301, 308))
self.assertEqual(resp.content_type, "application/json")
self.assertTrue(resp.headers["Location"].endswith("/with_trailing_slash/"))

0 comments on commit a879f10

Please sign in to comment.