Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #5466: Added check to enforce that all name of controllers end with "Handler" or "Page" #5878

Merged
merged 12 commits into from
Nov 28, 2018
Prev Previous commit
Next Next commit
Remove conflicts
  • Loading branch information
Rishav Chakraborty committed Nov 23, 2018
commit d570f1d20df5b467d48a3bc5d3c8a299f6005712
4 changes: 3 additions & 1 deletion core/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,9 @@ def get_expected_logout_url(self, slug):
def _parse_json_response(self, json_response, expect_errors=False):
"""Convert a JSON server response to an object (such as a dict)."""
if not expect_errors:
self.assertEqual(json_response.status_int, 200)
self.assertTrue(
json_response.status_int < 400 and
json_response.status_int >= 200)
self.assertEqual(
json_response.content_type, 'application/json')
self.assertTrue(json_response.body.startswith(feconf.XSSI_PREFIX))
Expand Down