# coding: utf-8

"""
    Camunda Platform REST API

    OpenApi Spec for Camunda Platform REST API.  # noqa: E501

    The version of the OpenAPI document: 7.16.0
    Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

import unittest
import datetime

import generic_camunda_client
from generic_camunda_client.models.historic_detail_query_dto import HistoricDetailQueryDto  # noqa: E501
from generic_camunda_client.rest import ApiException

class TestHistoricDetailQueryDto(unittest.TestCase):
    """HistoricDetailQueryDto unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test HistoricDetailQueryDto
            include_option is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # model = generic_camunda_client.models.historic_detail_query_dto.HistoricDetailQueryDto()  # noqa: E501
        if include_optional :
            return HistoricDetailQueryDto(
                process_instance_id = '0', 
                process_instance_id_in = [
                    '0'
                    ], 
                execution_id = '0', 
                task_id = '0', 
                activity_instance_id = '0', 
                case_instance_id = '0', 
                case_execution_id = '0', 
                variable_instance_id = '0', 
                variable_type_in = [
                    '0'
                    ], 
                tenant_id_in = [
                    '0'
                    ], 
                without_tenant_id = True, 
                user_operation_id = '0', 
                form_fields = True, 
                variable_updates = True, 
                exclude_task_details = True, 
                initial = True, 
                occurred_before = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 
                occurred_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 
                sorting = [
                    generic_camunda_client.models.historic_detail_query_dto_sorting.HistoricDetailQueryDto_sorting(
                        sort_by = 'processInstanceId', 
                        sort_order = 'asc', )
                    ]
            )
        else :
            return HistoricDetailQueryDto(
        )

    def testHistoricDetailQueryDto(self):
        """Test HistoricDetailQueryDto"""
        inst_req_only = self.make_instance(include_optional=False)
        inst_req_and_optional = self.make_instance(include_optional=True)


if __name__ == '__main__':
    unittest.main()
