github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/python/test/test_commit_record_creation.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.commit_record_creation import CommitRecordCreation # noqa: E501 21 from lakefs_sdk.rest import ApiException 22 23 class TestCommitRecordCreation(unittest.TestCase): 24 """CommitRecordCreation 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 CommitRecordCreation 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 `CommitRecordCreation` 38 """ 39 model = lakefs_sdk.models.commit_record_creation.CommitRecordCreation() # noqa: E501 40 if include_optional : 41 return CommitRecordCreation( 42 commit_id = '', 43 version = 0, 44 committer = '', 45 message = '', 46 metarange_id = '', 47 creation_date = 56, 48 parents = [ 49 '' 50 ], 51 metadata = { 52 'key' : '' 53 }, 54 generation = 56, 55 force = True 56 ) 57 else : 58 return CommitRecordCreation( 59 commit_id = '', 60 version = 0, 61 committer = '', 62 message = '', 63 metarange_id = '', 64 creation_date = 56, 65 parents = [ 66 '' 67 ], 68 generation = 56, 69 ) 70 """ 71 72 def testCommitRecordCreation(self): 73 """Test CommitRecordCreation""" 74 # inst_req_only = self.make_instance(include_optional=False) 75 # inst_req_and_optional = self.make_instance(include_optional=True) 76 77 if __name__ == '__main__': 78 unittest.main()