forked from DGNum/gestioCOF
Merge branch 'supportBDS' into supportBDS
This commit is contained in:
commit
72691b2d98
1 changed files with 5 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue