github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/python/test/test_config.py (about)

     1  # coding: utf-8
     2  
     3  """
     4      lakeFS API
     5  
     6      lakeFS HTTP API
     7  
     8      The version of the OpenAPI document: 1.0.0
     9      Contact: services@treeverse.io
    10      Generated by OpenAPI Generator (https://openapi-generator.tech)
    11  
    12      Do not edit the class manually.
    13  """  # noqa: E501
    14  
    15  
    16  import unittest
    17  import datetime
    18  
    19  import lakefs_sdk
    20  from lakefs_sdk.models.config import Config  # noqa: E501
    21  from lakefs_sdk.rest import ApiException
    22  
    23  class TestConfig(unittest.TestCase):
    24      """Config unit test stubs"""
    25  
    26      def setUp(self):
    27          pass
    28  
    29      def tearDown(self):
    30          pass
    31  
    32      def make_instance(self, include_optional):
    33          """Test Config
    34              include_option is a boolean, when False only required
    35              params are included, when True both required and
    36              optional params are included """
    37          # uncomment below to create an instance of `Config`
    38          """
    39          model = lakefs_sdk.models.config.Config()  # noqa: E501
    40          if include_optional :
    41              return Config(
    42                  version_config = lakefs_sdk.models.version_config.VersionConfig(
    43                      version = '', 
    44                      latest_version = '', 
    45                      upgrade_recommended = True, 
    46                      upgrade_url = '', ), 
    47                  storage_config = lakefs_sdk.models.storage_config.StorageConfig(
    48                      blockstore_type = '', 
    49                      blockstore_namespace_example = '', 
    50                      blockstore_namespace_validity_regex = '', 
    51                      default_namespace_prefix = '', 
    52                      pre_sign_support = True, 
    53                      pre_sign_support_ui = True, 
    54                      import_support = True, 
    55                      import_validity_regex = '', 
    56                      pre_sign_multipart_upload = True, )
    57              )
    58          else :
    59              return Config(
    60          )
    61          """
    62  
    63      def testConfig(self):
    64          """Test Config"""
    65          # inst_req_only = self.make_instance(include_optional=False)
    66          # inst_req_and_optional = self.make_instance(include_optional=True)
    67  
    68  if __name__ == '__main__':
    69      unittest.main()