From 7f958d4be8b66e75970ccbd65f743a5caa9bbc2e Mon Sep 17 00:00:00 2001 From: nolash Date: Wed, 22 Dec 2021 20:23:02 +0000 Subject: [PATCH] Rehabiliate test for balance incoming check (already counted from PENDING state) --- apps/cic-eth/admin_requirements.txt | 2 +- apps/cic-eth/tests/unit/queue/test_balances.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/cic-eth/admin_requirements.txt b/apps/cic-eth/admin_requirements.txt index 0fcb6235..7649b394 100644 --- a/apps/cic-eth/admin_requirements.txt +++ b/apps/cic-eth/admin_requirements.txt @@ -1,4 +1,4 @@ SQLAlchemy==1.3.20 hexathon~=0.1.0 chainqueue~=0.0.6a4 -eth-erc20==0.1.4 +eth-erc20~=0.1.5 diff --git a/apps/cic-eth/tests/unit/queue/test_balances.py b/apps/cic-eth/tests/unit/queue/test_balances.py index ffadd080..dccaa4c3 100644 --- a/apps/cic-eth/tests/unit/queue/test_balances.py +++ b/apps/cic-eth/tests/unit/queue/test_balances.py @@ -143,7 +143,7 @@ def test_incoming_balance( 'converters': [], } b = balance_incoming([token_data], recipient, default_chain_spec.asdict()) - assert b[0]['balance_incoming'] == 0 + assert b[0]['balance_incoming'] == 1000 otx.readysend(session=init_database) init_database.flush() @@ -152,8 +152,8 @@ def test_incoming_balance( otx.sent(session=init_database) init_database.commit() - b = balance_incoming([token_data], recipient, default_chain_spec.asdict()) - assert b[0]['balance_incoming'] == 1000 + #b = balance_incoming([token_data], recipient, default_chain_spec.asdict()) + #assert b[0]['balance_incoming'] == 1000 otx.success(block=1024, session=init_database) init_database.commit()