Skip to content

Commit 4e6e76e

Browse files
committed
Fixed Python wrapper
Signed-off-by: artem.ivanov <[email protected]>
1 parent 5e0d714 commit 4e6e76e

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

wrappers/python/tests/non_secrets/test_add_wallet_record_tags.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@
88
@pytest.mark.asyncio
99
async def test_add_wallet_record_tags_works(wallet_handle):
1010
await non_secrets.add_wallet_record(wallet_handle, type_, id1, value1, tags_empty)
11-
check_record_field(wallet_handle, "tags", tags_empty)
11+
await check_record_field(wallet_handle, "tags", tags_empty)
1212

1313
await non_secrets.add_wallet_record_tags(wallet_handle, type_, id1, tags1)
14-
check_record_field(wallet_handle, "tags", tags1)
14+
await check_record_field(wallet_handle, "tags", tags1)
1515

1616

1717
@pytest.mark.asyncio
1818
async def test_add_wallet_record_tags_works_for_twice(wallet_handle):
1919
await non_secrets.add_wallet_record(wallet_handle, type_, id1, value1, tags_empty)
20-
check_record_field(wallet_handle, "tags", tags_empty)
20+
await check_record_field(wallet_handle, "tags", tags_empty)
2121

2222
tags1 = '{"tagName1": "str1"}'
2323
await non_secrets.add_wallet_record_tags(wallet_handle, type_, id1, tags1)
24-
check_record_field(wallet_handle, "tags", tags1)
24+
await check_record_field(wallet_handle, "tags", tags1)
2525

2626
tags2 = '{"tagName2": "str2"}'
2727
await non_secrets.add_wallet_record_tags(wallet_handle, type_, id1, tags2)
28-
check_record_field(wallet_handle, "tags", tags2)
28+
await check_record_field(wallet_handle, "tags", tags2)
2929

3030
expected_tags = '{"tagName1": "str1", "tagName2": "str2"}'
31-
check_record_field(wallet_handle, "tags", expected_tags)
31+
await check_record_field(wallet_handle, "tags", expected_tags)
3232

3333

3434
@pytest.mark.asyncio

wrappers/python/tests/non_secrets/test_delete_wallet_record_tags.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88
@pytest.mark.asyncio
99
async def test_delete_wallet_record_tags_works(wallet_handle):
1010
await non_secrets.add_wallet_record(wallet_handle, type_, id1, value1, tags1)
11-
check_record_field(wallet_handle, "tags", tags1)
11+
await check_record_field(wallet_handle, "tags", tags1)
1212

1313
await non_secrets.delete_wallet_record_tags(wallet_handle, type_, id1, '["tagName1"]')
1414
expected_tags = '{"tagName2": 5, "tagName3": 12}'
15-
check_record_field(wallet_handle, "tags", expected_tags)
15+
await check_record_field(wallet_handle, "tags", expected_tags)
1616

1717

1818
@pytest.mark.asyncio
1919
async def test_delete_wallet_record_tags_works_for_delete_all(wallet_handle):
2020
await non_secrets.add_wallet_record(wallet_handle, type_, id1, value1, tags1)
21-
check_record_field(wallet_handle, "tags", tags1)
21+
await check_record_field(wallet_handle, "tags", tags1)
2222

2323
await non_secrets.delete_wallet_record_tags(wallet_handle, type_, id1, '["tagName1", "tagName2", "tagName3"]')
24-
check_record_field(wallet_handle, "tags", tags_empty)
24+
await check_record_field(wallet_handle, "tags", tags_empty)
2525

2626

2727
@pytest.mark.asyncio

wrappers/python/tests/non_secrets/test_update_wallet_record_tags.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88
@pytest.mark.asyncio
99
async def test_update_wallet_record_tags_works(wallet_handle):
1010
await non_secrets.add_wallet_record(wallet_handle, type_, id1, value1, tags_empty)
11-
check_record_field(wallet_handle, "tags", tags_empty)
11+
await check_record_field(wallet_handle, "tags", tags_empty)
1212

1313
await non_secrets.update_wallet_record_tags(wallet_handle, type_, id1, tags1)
14-
check_record_field(wallet_handle, "tags", tags1)
14+
await check_record_field(wallet_handle, "tags", tags1)
1515

1616

1717
@pytest.mark.asyncio
1818
async def test_update_wallet_record_tags_works_for_twice(wallet_handle):
1919
await non_secrets.add_wallet_record(wallet_handle, type_, id1, value1, tags_empty)
20-
check_record_field(wallet_handle, "tags", tags_empty)
20+
await check_record_field(wallet_handle, "tags", tags_empty)
2121

2222
await non_secrets.update_wallet_record_tags(wallet_handle, type_, id1, tags1)
23-
check_record_field(wallet_handle, "tags", tags1)
23+
await check_record_field(wallet_handle, "tags", tags1)
2424

2525
await non_secrets.update_wallet_record_tags(wallet_handle, type_, id1, tags2)
26-
check_record_field(wallet_handle, "tags", tags2)
26+
await check_record_field(wallet_handle, "tags", tags2)
2727

2828

2929
@pytest.mark.asyncio

wrappers/python/tests/non_secrets/test_update_wallet_record_value.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88
@pytest.mark.asyncio
99
async def test_update_wallet_record_value_works(wallet_handle):
1010
await non_secrets.add_wallet_record(wallet_handle, type_, id1, value1, tags_empty)
11-
check_record_field(wallet_handle, "value", value1)
11+
await check_record_field(wallet_handle, "value", value1)
1212

1313
await non_secrets.update_wallet_record_value(wallet_handle, type_, id1, value2)
14-
check_record_field(wallet_handle, "value", value2)
14+
await check_record_field(wallet_handle, "value", value2)
1515

1616

1717
@pytest.mark.asyncio
1818
async def test_update_wallet_record_value_works_for_twice(wallet_handle):
1919
await non_secrets.add_wallet_record(wallet_handle, type_, id1, value1, tags_empty)
20-
check_record_field(wallet_handle, "value", tags_empty)
20+
await check_record_field(wallet_handle, "value", tags_empty)
2121

2222
await non_secrets.update_wallet_record_value(wallet_handle, type_, id1, value2)
23-
check_record_field(wallet_handle, "value", value2)
23+
await check_record_field(wallet_handle, "value", value2)
2424

2525
await non_secrets.update_wallet_record_value(wallet_handle, type_, id1, value3)
26-
check_record_field(wallet_handle, "value", value3)
26+
await check_record_field(wallet_handle, "value", value3)
2727

2828

2929
@pytest.mark.asyncio

wrappers/python/tests/payment/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
fees = '{"txnType1":1, "txnType2":2}'
88
invalid_inputs = '["pay:null1"]'
99
incompatible_inputs = '["pay:PAYMENT_METHOD_1:1", "pay:PAYMENT_METHOD_2:1"]'
10-
incompatible_outputs = '[{"recipient": "pay:PAYMENT_METHOD_1:1", "amount":1}, {"recipient+": "pay:PAYMENT_METHOD_2:1", "amount":1}]'
10+
incompatible_outputs = '[{"recipient": "pay:PAYMENT_METHOD_1:1", "amount":1}, {"recipient": "pay:PAYMENT_METHOD_2:1", "amount":1}]'

0 commit comments

Comments
 (0)