# coding: utf-8

"""
    Algorithmia Management APIs

    APIs for managing actions on the Algorithmia platform  # noqa: E501

    The version of the OpenAPI document: 1.0.1
    Contact: support@algorithmia.com
    Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

import unittest
import datetime

import algorithmia_api_client
from algorithmia_api_client.models.source import Source  # noqa: E501
from algorithmia_api_client.rest import ApiException

class TestSource(unittest.TestCase):
    """Source unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test Source
            include_option is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # model = algorithmia_api_client.models.source.Source()  # noqa: E501
        if include_optional :
            return Source(
                repository_name = '0', 
                repository_owner = '0', 
                repository_https_url = '0', 
                repository_ssh_url = '0', 
                scm = algorithmia_api_client.models.scm.Scm(
                    id = '0', 
                    enabled = True, 
                    default = True, 
                    provider = 'internal', 
                    oauth = algorithmia_api_client.models.scm_o_auth_configuration.ScmOAuthConfiguration(
                        client_id = '0', 
                        client_secret = '0', ), 
                    urls = algorithmia_api_client.models.scm_urls.ScmUrls(
                        web = '0', 
                        api = '0', 
                        ssh = '0', ), )
            )
        else :
            return Source(
                scm = algorithmia_api_client.models.scm.Scm(
                    id = '0', 
                    enabled = True, 
                    default = True, 
                    provider = 'internal', 
                    oauth = algorithmia_api_client.models.scm_o_auth_configuration.ScmOAuthConfiguration(
                        client_id = '0', 
                        client_secret = '0', ), 
                    urls = algorithmia_api_client.models.scm_urls.ScmUrls(
                        web = '0', 
                        api = '0', 
                        ssh = '0', ), ),
        )

    def testSource(self):
        """Test Source"""
        inst_req_only = self.make_instance(include_optional=False)
        inst_req_and_optional = self.make_instance(include_optional=True)


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