diff options
Diffstat (limited to 'fossee_manim')
-rw-r--r-- | fossee_manim/tests/test_views.py | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/fossee_manim/tests/test_views.py b/fossee_manim/tests/test_views.py index 3209f42..4d77bfe 100644 --- a/fossee_manim/tests/test_views.py +++ b/fossee_manim/tests/test_views.py @@ -73,22 +73,4 @@ class TestProfile(TestCase): profile = Profile.objects.get(user=user_profile) self.assertEqual(response.status_code, 200) self.assertEqual(profile.institute, 'ace') - self.client.logout() - - def test_edit_profile_post(self): - - self.client.login(username=self.user2, password='pass@123') - response = self.client.post('/edit_profile/', - { - 'first_name': 'demo_test', - 'last_name': 'user2', - 'institute': 'IIT', - 'department': 'aerospace engineering' - }) - - updated_profile_user = User.objects.get(id=self.user2.id) - updated_profile = Profile.objects.get(user=updated_profile_user) - self.assertEqual(updated_profile.institute, 'IIT') - self.assertEqual(updated_profile.department, 'aerospace engineering') - self.assertEqual(updated_profile.position, 'instructor') - self.assertEqual(response.status_code, 200) + self.client.logout()
\ No newline at end of file |