Commit e89cd7a3 by Arthur Barrett

fix test to check for 400 status code instead of 500.

parent 1fbe43a6
......@@ -178,7 +178,7 @@ class ApiTest(TestCase):
json.dumps(empty_test),
content_type='application/json',
HTTP_X_REQUESTED_WITH='XMLHttpRequest')
self.assertEqual(resp.status_code, 500)
self.assertEqual(resp.status_code, 400)
def test_create_note_missing_ranges(self):
self.login()
......@@ -194,7 +194,7 @@ class ApiTest(TestCase):
json.dumps(note),
content_type='application/json',
HTTP_X_REQUESTED_WITH='XMLHttpRequest')
self.assertEqual(resp.status_code, 500)
self.assertEqual(resp.status_code, 400)
def test_read_note(self):
self.login()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment