github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/python/test/test_object_stats_list.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.object_stats_list import ObjectStatsList # noqa: E501 21 from lakefs_sdk.rest import ApiException 22 23 class TestObjectStatsList(unittest.TestCase): 24 """ObjectStatsList 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 ObjectStatsList 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 `ObjectStatsList` 38 """ 39 model = lakefs_sdk.models.object_stats_list.ObjectStatsList() # noqa: E501 40 if include_optional : 41 return ObjectStatsList( 42 pagination = lakefs_sdk.models.pagination.Pagination( 43 has_more = True, 44 next_offset = '', 45 results = 0, 46 max_per_page = 0, ), 47 results = [ 48 lakefs_sdk.models.object_stats.ObjectStats( 49 path = '', 50 path_type = 'common_prefix', 51 physical_address = '', 52 physical_address_expiry = 56, 53 checksum = '', 54 size_bytes = 56, 55 mtime = 56, 56 metadata = { 57 'key' : '' 58 }, 59 content_type = '', ) 60 ] 61 ) 62 else : 63 return ObjectStatsList( 64 pagination = lakefs_sdk.models.pagination.Pagination( 65 has_more = True, 66 next_offset = '', 67 results = 0, 68 max_per_page = 0, ), 69 results = [ 70 lakefs_sdk.models.object_stats.ObjectStats( 71 path = '', 72 path_type = 'common_prefix', 73 physical_address = '', 74 physical_address_expiry = 56, 75 checksum = '', 76 size_bytes = 56, 77 mtime = 56, 78 metadata = { 79 'key' : '' 80 }, 81 content_type = '', ) 82 ], 83 ) 84 """ 85 86 def testObjectStatsList(self): 87 """Test ObjectStatsList""" 88 # inst_req_only = self.make_instance(include_optional=False) 89 # inst_req_and_optional = self.make_instance(include_optional=True) 90 91 if __name__ == '__main__': 92 unittest.main()