summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshen2019-05-09 15:15:36 +0530
committerAkshen2019-05-09 15:15:36 +0530
commite80fb5f7ba0c8d0237dae36777860fdfcd11ae95 (patch)
tree09d46e19570aeb67a44427127539ed7bcce86f44
parent836a9375ea153bd2bea41534888201abbf2355c3 (diff)
downloadFOSSEE_animations-e80fb5f7ba0c8d0237dae36777860fdfcd11ae95.tar.gz
FOSSEE_animations-e80fb5f7ba0c8d0237dae36777860fdfcd11ae95.tar.bz2
FOSSEE_animations-e80fb5f7ba0c8d0237dae36777860fdfcd11ae95.zip
Test update
-rw-r--r--fossee_manim/tests/test_views.py20
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