# Path: app/api/tests/utils.py
# def obtain_api_key(client):
# def create_admin_account():
# def create_normal_user_acount():
# def make_request(client, query, method='GET'):


from django.test import Client, TestCase
from .utils import (admin_test_credentials, create_admin_account,
                    make_request,)
        ''' % ('wrong-id')
        self.assertEqual({'user': None}, make_request(self.client, query, 'POST'))

    def test_update_of_user_object_with_profile(self):
        # Update with valid id
        query = '''
            mutation{
                updateUser(
                    input: {
                        user:{
                            id: "%s",
                            firstName: "Akeem",
                            lastName: "Oduola",
                            username: "oakeem",
                            email: "akeem.oduola@andela.com"
                        },
                        profile: {customAuthId:"abcd"}

                    }
                )
                {
                    user{
                        id,
                        originalId,
                        username,
                        firstName,
                        lastName,
                        email,
                        profile{customAuthId}
                    }

# Path: app/api/tests/utils.py
# def obtain_api_key(client):
# def create_admin_account():
# def create_normal_user_acount():
# def make_request(client, query, method='GET'):


# Path: app/api/tests/test_user_api.py
from django.test import Client, TestCase
from .utils import (admin_test_credentials, create_admin_account,
                    make_request,)

        ''' % ('wrong-id')
        self.assertEqual({'user': None}, make_request(self.client, query, 'POST'))

    def test_update_of_user_object_with_profile(self):
        # Update with valid id
        query = '''
            mutation{
                updateUser(
                    input: {
                        user:{
                            id: "%s",
                            firstName: "Akeem",
                            lastName: "Oduola",
                            username: "oakeem",
                            email: "akeem.oduola@andela.com"
                        },
                        profile: {customAuthId:"abcd"}

                    }
                )
                {
                    user{
                        id,
                        originalId,
                        username,
                        firstName,
                        lastName,
                        email,
                        profile{customAuthId}
                    }

                }