# 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,)
        expected = {
            'user': {
                'id': created_user['id'],
                'originalId': created_user['originalId'],
                'username': created_user['username'],
                'profile': {'customAuthId': 'abc'}
            }
        }
        self.assertEqual(expected, response)

    def test_retrieval_of_one_user_object(self):
        # Retrieve with valid id
        expected = {
            'user': {
                'username': self.first_user['username']
            }
        }
        self.assertEqual(expected, self.retrieve_user(self.first_user['id']))

        # Retrieve with invalid id
        self.assertEqual({'user': None}, self.retrieve_user(100))

    def test_retrieval_of_multiple_user_objects_without_filtering(self):
        new_users = self.create_multiple_users()

        query = 'query {users{edges{node{username}}}}'

        expected = {
           'users': [
                {

# 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,)

        expected = {
            'user': {
                'id': created_user['id'],
                'originalId': created_user['originalId'],
                'username': created_user['username'],
                'profile': {'customAuthId': 'abc'}
            }
        }
        self.assertEqual(expected, response)

    def test_retrieval_of_one_user_object(self):
        # Retrieve with valid id
        expected = {
            'user': {
                'username': self.first_user['username']
            }
        }
        self.assertEqual(expected, self.retrieve_user(self.first_user['id']))

        # Retrieve with invalid id
        self.assertEqual({'user': None}, self.retrieve_user(100))

    def test_retrieval_of_multiple_user_objects_without_filtering(self):
        new_users = self.create_multiple_users()

        query = 'query {users{edges{node{username}}}}'

        expected = {
           'users': [
                {

                    'username': admin_test_credentials[0]