From ddb9aefad4ca4473ec4a9c1f2b39d62ea97d57e3 Mon Sep 17 00:00:00 2001 From: Dmytro Date: Tue, 21 Apr 2026 19:32:39 +0100 Subject: [PATCH] update schains ls test --- tests/cli/schains_test.py | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/tests/cli/schains_test.py b/tests/cli/schains_test.py index e450800a..ffefdea8 100644 --- a/tests/cli/schains_test.py +++ b/tests/cli/schains_test.py @@ -34,28 +34,48 @@ def test_ls(): { 'name': 'test_schain1', 'mainnet_owner': '0x123', - 'index_owner_list': 3, + 'index_in_owner_list': 3, 'part_of_node': 0, 'lifetime': 5, 'start_date': 1570115385, + 'start_block': 1000, 'deposit': 1000000000000000000, 'index': 3, 'generation': 1, 'originator': '0x465', - 'options': {'allocation_type': 0}, # noqa + 'schain_hash': 'c55c12fc3ded931fbc34715443023a4a72e53f32aaafa42659cbef7b60e7d06a', + 'options': { + 'multitransaction_mode': True, + 'threshold_encryption': True, + 'allocation_type': 0, + 'external_gas_difficulty': '0x01', + 'min_gas_price': None, + 'max_gas_price': None, + }, + 'active': True, }, { 'name': 'crazy_cats1', 'mainnet_owner': '0x321', - 'index_owner_list': 8, + 'index_in_owner_list': 8, 'part_of_node': 0, 'lifetime': 5, 'start_date': 1570469410, + 'start_block': 1000, 'deposit': 1000000000000000000, 'index': 8, 'generation': 0, 'originator': '0x0', - 'options': {'allocation_type': 0}, # noqa + 'schain_hash': '139f942ee2f304b59143e340621139f58a7bb37d58e30a0ec46fdd1aaf79632a', + 'options': { + 'multitransaction_mode': True, + 'threshold_encryption': True, + 'allocation_type': 0, + 'external_gas_difficulty': '0x01', + 'min_gas_price': None, + 'max_gas_price': None, + }, + 'active': True, }, ] resp_mock = response_mock(requests.codes.ok, json_data={'payload': payload, 'status': 'ok'})