Commit 710f1e05 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

when post data is invlid, the view simply render the page as a GET, thus HTTP 200

parent bc9a90db
......@@ -1102,7 +1102,7 @@ class DataSourceMappingEditTestCase(ViewTestCase):
form_data = {}
self.assertRaises(ValidationError, self.client.post, url, form_data)
self.assertEqual(self.client.post(url, form_data).status_code, 200, "Stay on the page as the form is invalid")
self.assertFalse(self.public_data_source_of_user.is_mapping_done)
......
Supports Markdown
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