Merge branch 'supportBDS' into supportBDS

This commit is contained in:
Martin Pépin 2017-10-26 15:11:11 +02:00
commit 72691b2d98

View file

@ -79,14 +79,17 @@ class TestProfile(TestCase):
"first_name": "foo",
"last_name": "bar",
"phone": "0123456789",
"departement": "baz"
"departement": "baz",
"occupation": "1A",
}
c.post("/profile", post_data)
r = c.post("/profile/edit/", post_data)
self.assertRedirects(r, "/profile/")
user = User.objects.get(username="root")
self.assertEqual(user.first_name, post_data['first_name'])
self.assertEqual(user.last_name, post_data["last_name"])
self.assertEqual(user.profile.phone, post_data["phone"])
self.assertEqual(user.profile.departement, post_data["departement"])
self.assertEqual(user.profile.occupation, post_data["occupation"])
class AuthTest(TestCase):