67 lines
2.0 KiB
Python
Raw Permalink Normal View History

2024-08-23 16:22:29 +02:00
# 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
2024-12-18 14:37:13 +01:00
from codex_api_client.models.purchase import Purchase
2024-08-23 16:22:29 +02:00
class TestPurchase(unittest.TestCase):
"""Purchase unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Purchase:
"""Test Purchase
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 `Purchase`
"""
model = Purchase()
if include_optional:
return Purchase(
2024-12-18 14:37:13 +01:00
state = 'cancelled',
2024-08-23 16:22:29 +02:00
error = '',
2024-12-18 14:37:13 +01:00
request = codex_api_client.models.storage_request.StorageRequest(
2024-08-23 16:22:29 +02:00
id = '',
client = '',
2024-12-18 14:37:13 +01:00
ask = codex_api_client.models.storage_ask.StorageAsk(
2024-08-23 16:22:29 +02:00
slots = 56,
slot_size = '',
duration = '',
proof_probability = '',
reward = '',
max_slot_loss = 56, ),
2024-12-18 14:37:13 +01:00
content = codex_api_client.models.content.Content(
cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N', ),
2024-08-23 16:22:29 +02:00
expiry = '10 minutes',
nonce = '', )
)
else:
return Purchase(
)
"""
def testPurchase(self):
"""Test Purchase"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()