# coding: utf-8 """ Codex API List of endpoints and interfaces available to Codex API users The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 import unittest from codex_client.models.storage_request import StorageRequest class TestStorageRequest(unittest.TestCase): """StorageRequest unit test stubs""" def setUp(self): pass def tearDown(self): pass def make_instance(self, include_optional) -> StorageRequest: """Test StorageRequest include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `StorageRequest` """ model = StorageRequest() if include_optional: return StorageRequest( id = '', client = '', ask = codex_client.models.storage_ask.StorageAsk( slots = 56, slot_size = '', duration = '', proof_probability = '', reward = '', max_slot_loss = 56, ), content = codex_client.models.content.Content( cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N', erasure = codex_client.models.erasure_parameters.ErasureParameters( total_chunks = 56, ), por = codex_client.models.po_r_parameters.PoRParameters( u = '', public_key = '', name = '', ), ), expiry = '10 minutes', nonce = '' ) else: return StorageRequest( ) """ def testStorageRequest(self): """Test StorageRequest""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main()