app/user/tests/test_user_api.py
def post_update_user_profile(self):
        """Test update user profile for authenticated user"""
        payload = {
            'name': 'test111',
            'password': 'newpass#123'
        }
        res = self.client.patch(ME_URL, payload)
        self.user.refresh_from_db()
        self.assertTrue(self.user.check_password(payload['password']))
        self.assertEqual(res.status_code, status.HTTP_200_OK)
Test update user profile for authenticated user
Test update user profile for authenticated user
Test update user profile for authenticated user
def post_update_user_profile(self):
        payload = {
            'name': 'test111',
            'password': 'newpass#123'
        }
        res = self.client.patch(ME_URL, payload)
        self.user.refresh_from_db()
        self.assertTrue(self.user.check_password(payload['password']))
        self.assertEqual(res.status_code, status.HTTP_200_OK)
def post_update_user_profile ( self ) : payload = { 'name' : 'test111' , 'password' : 'newpass#123' } res = self . client . patch ( ME_URL , payload ) self . user . refresh_from_db ( ) self . assertTrue ( self . user . check_password ( payload [ 'password' ] ) ) self . assertEqual ( res . status_code , status . HTTP_200_OK )
Test update user profile for authenticated user
Test update user profile for authenticated user
"""Test update user profile for authenticated user"""
self