def user_dto():
    user_dto = UserDto(user_id=1,
                       username="******",
                       is_admin=False,
                       profile_pic="http://www.google.com",
                       phone_no="9999999999")

    return user_dto
    def _convert_user_obj_to_dto(user_obj):

        userdto = UserDto(user_id=user_obj.user_id,
                          username=user_obj.username,
                          profile_pic=user_obj.profile_pic,
                          phone_no=user_obj.phone_no,
                          is_admin=user_obj.is_admin)
        return userdto
Ejemplo n.º 3
0
def user_dto():
    user_dto = UserDto(
        user_id=1,
        username="******",
        profile_pic="http://www.google.com",
        phone_no="8739835635",
        is_admin=True
        )
        
    return user_dto
    def test_case(self, interface_mock):

        user_dto = UserDto(
        user_id=1,
        username="******",
        is_admin=False,
        profile_pic="http://www.google.com",
        phone_no="9999999999"
        )
        interface_mock.get_user_dto.return_value = user_dto

        self.default_test_case()
Ejemplo n.º 5
0
      StateDto, TaskDetailsDto, TaskDto, ChecklistDetailsDto,\
      GetTransitionDetailsDto, UpdateTransitionInputDto,\
      ChecklistStatusDto

project_data = {
    "project_id": 1,
    "name": "projectManagement",
    "description": "it's a blaw blaw blaw blaw  blaw blaw ",
    "workflow_id": 1,
    "project_type": "Classic Software",
    "developers": [1]
}

user_dto = UserDto(user_id=1,
                   username="******",
                   profile_pic="http://www.google.com",
                   phone_no="9782346742",
                   is_admin=True)

project_dto = ProjectDto(name=project_data.get('name'),
                         description=project_data.get('description'),
                         workflow_id=project_data.get('workflow_id'),
                         project_type=project_data.get('project_type'),
                         developer_ids=project_data.get('developers'))
project_with_no_developers_dto = ProjectDto(
    name=project_data.get('name'),
    description=project_data.get('description'),
    workflow_id=project_data.get('workflow_id'),
    project_type=project_data.get('project_type'),
    developer_ids=[])