1
0
Fork 0
forked from lthn/blockchain
blockchain/utils/sdk/client/python/test/test_block_template_model.py
Snider 2852702a4b Add Python SDK for lthn API
Introduces a new Python client SDK for the lthn API, generated via OpenAPI Generator. Includes source code, models, API classes, documentation, tests, CI/CD workflows for GitHub and GitLab, and project configuration files.
2025-10-19 15:15:41 +01:00

103 lines
3.3 KiB
Python
Generated

# coding: utf-8
"""
Lethean Blockchain API
OpenAPI for Lethean Blockchain
The version of the OpenAPI document: 6.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from lthn.models.block_template_model import BlockTemplateModel
class TestBlockTemplateModel(unittest.TestCase):
"""BlockTemplateModel unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> BlockTemplateModel:
"""Test BlockTemplateModel
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 `BlockTemplateModel`
"""
model = BlockTemplateModel()
if include_optional:
return BlockTemplateModel(
blocktemplate_blob = '',
difficulty = '',
height = 56,
miner_tx_tgc = lthn.models.tx_generation_context_model.TxGenerationContextModel(
asset_ids = [
''
],
blinded_asset_ids = [
''
],
amount_commitments = [
''
],
asset_id_blinding_masks = [
''
],
amounts = [
''
],
amount_blinding_masks = [
''
],
pseudo_outs_blinded_asset_ids = [
''
],
pseudo_outs_plus_real_out_blinding_masks = [
''
],
real_zc_ins_asset_ids = [
''
],
zc_input_amounts = [
56
],
pseudo_out_amount_commitments_sum = '',
pseudo_out_amount_blinding_masks_sum = '',
real_in_asset_id_blinding_mask_x_amount_sum = '',
amount_commitments_sum = '',
amount_blinding_masks_sum = '',
asset_id_blinding_mask_x_amount_sum = '',
ao_asset_id = '',
ao_asset_id_pt = '',
ao_amount_commitment = '',
ao_amount_blinding_mask = '',
ao_commitment_in_outputs = True,
tx_key_pub = '',
tx_key_sec = '',
tx_pub_key_p = '', ),
block_reward_without_fee = 56,
block_reward = 56,
txs_fee = 56,
prev_hash = '',
seed = ''
)
else:
return BlockTemplateModel(
)
"""
def testBlockTemplateModel(self):
"""Test BlockTemplateModel"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()