# coding: utf-8

"""
    Pinterest REST API

    Pinterest's REST API

    The version of the OpenAPI document: 5.23.0
    Contact: blah+oapicf@cliffano.com
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


import unittest

from pinterestsdk.models.top_pins_analytics_response import TopPinsAnalyticsResponse

class TestTopPinsAnalyticsResponse(unittest.TestCase):
    """TopPinsAnalyticsResponse unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional) -> TopPinsAnalyticsResponse:
        """Test TopPinsAnalyticsResponse
            include_optional is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # uncomment below to create an instance of `TopPinsAnalyticsResponse`
        """
        model = TopPinsAnalyticsResponse()
        if include_optional:
            return TopPinsAnalyticsResponse(
                date_availability = pinterestsdk.models.top_pins_analytics_response_date_availability.TopPinsAnalyticsResponse_date_availability(
                    is_realtime = False, 
                    latest_available_timestamp = 1649116799000, ),
                pins = [
                    pinterestsdk.models.top_pins_analytics_response_pins_inner.TopPinsAnalyticsResponse_pins_inner(
                        data_status = {
                            'key' : 'READY'
                            }, 
                        metrics = {"CLOSEUP":1,"CLOSEUP_RATE":0,"ENGAGEMENT":1,"ENGAGEMENT_RATE":0,"IMPRESSION":240,"OUTBOUND_CLICK":20,"OUTBOUND_CLICK_RATE":0.08,"PIN_CLICK":37,"PIN_CLICK_RATE":0.15,"QUARTILE_95_PERCENT_VIEW":8,"SAVE":20,"SAVE_RATE":0.18,"VIDEO_10S_VIEW":2,"VIDEO_AVG_WATCH_TIME":2507.75,"VIDEO_MRC_VIEW":20,"VIDEO_START":29,"VIDEO_V50_WATCH_TIME":10031}, 
                        pin_id = '642396334344813594', )
                    ],
                sort_by = 'IMPRESSION'
            )
        else:
            return TopPinsAnalyticsResponse(
        )
        """

    def testTopPinsAnalyticsResponse(self):
        """Test TopPinsAnalyticsResponse"""
        # inst_req_only = self.make_instance(include_optional=False)
        # inst_req_and_optional = self.make_instance(include_optional=True)

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