# coding: utf-8

"""
    ibl-data-manager

    API for iblai

    The version of the OpenAPI document: 4.202.1-ai-plus
    Generated by OpenAPI Generator (https://openapi-generator.tech)

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


import unittest

from iblai.models.content_item import ContentItem

class TestContentItem(unittest.TestCase):
    """ContentItem unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional) -> ContentItem:
        """Test ContentItem
            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 `ContentItem`
        """
        model = ContentItem()
        if include_optional:
            return ContentItem(
                id = '',
                name = '',
                slug = '',
                platform = '',
                external = True,
                analytics = iblai.models.content_analytics.ContentAnalytics(
                    enrollments = 56, 
                    active_enrollments = 56, 
                    completion_rate = 1.337, 
                    avg_rating = 1.337, 
                    rating_count = 56, 
                    associated_courses = 56, 
                    learners_count = 56, 
                    total_time_spent = 56, 
                    avg_time_per_learner = 1.337, ),
                instructor = '',
                category = '',
                duration = '',
                enabled = True,
                created = '',
                updated = '',
                metadata = None
            )
        else:
            return ContentItem(
                id = '',
                name = '',
                slug = '',
                platform = '',
                external = True,
                analytics = iblai.models.content_analytics.ContentAnalytics(
                    enrollments = 56, 
                    active_enrollments = 56, 
                    completion_rate = 1.337, 
                    avg_rating = 1.337, 
                    rating_count = 56, 
                    associated_courses = 56, 
                    learners_count = 56, 
                    total_time_spent = 56, 
                    avg_time_per_learner = 1.337, ),
        )
        """

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

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