From a5608fcd980470e9d92ee13981ef12d21f2f38aa Mon Sep 17 00:00:00 2001 From: nolash Date: Fri, 28 May 2021 14:36:59 +0200 Subject: [PATCH] Add default token test --- .../tests/task/api/test_app_noncritical.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 apps/cic-eth/tests/task/api/test_app_noncritical.py diff --git a/apps/cic-eth/tests/task/api/test_app_noncritical.py b/apps/cic-eth/tests/task/api/test_app_noncritical.py new file mode 100644 index 00000000..88f81f6f --- /dev/null +++ b/apps/cic-eth/tests/task/api/test_app_noncritical.py @@ -0,0 +1,19 @@ +# local imports +from cic_eth.api.api_task import Api +from cic_eth.task import BaseTask + +def test_default_token( + default_chain_spec, + foo_token, + default_token, + token_registry, + register_tokens, + register_lookups, + cic_registry, + celery_worker, + ): + + api = Api(str(default_chain_spec), queue=None) + t = api.default_token() + r = t.get_leaf() + assert r['address'] == foo_token