github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/python/test/test_setup_state.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.setup_state import SetupState  # noqa: E501
    21  from lakefs_sdk.rest import ApiException
    22  
    23  class TestSetupState(unittest.TestCase):
    24      """SetupState 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 SetupState
    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 `SetupState`
    38          """
    39          model = lakefs_sdk.models.setup_state.SetupState()  # noqa: E501
    40          if include_optional :
    41              return SetupState(
    42                  state = 'initialized', 
    43                  comm_prefs_missing = True, 
    44                  login_config = lakefs_sdk.models.login_config.LoginConfig(
    45                      rbac = 'simplified', 
    46                      login_url = '', 
    47                      login_failed_message = '', 
    48                      fallback_login_url = '', 
    49                      fallback_login_label = '', 
    50                      login_cookie_names = [
    51                          ''
    52                          ], 
    53                      logout_url = '', )
    54              )
    55          else :
    56              return SetupState(
    57          )
    58          """
    59  
    60      def testSetupState(self):
    61          """Test SetupState"""
    62          # inst_req_only = self.make_instance(include_optional=False)
    63          # inst_req_and_optional = self.make_instance(include_optional=True)
    64  
    65  if __name__ == '__main__':
    66      unittest.main()