cic-eth: Add default token setting to cic-eth with api

This commit is contained in:
Louis Holbrook
2021-04-24 17:49:21 +00:00
parent cd0e702e3a
commit 16dd210965
9 changed files with 136 additions and 5 deletions

View File

@@ -0,0 +1,21 @@
# external imports
import celery
def test_default_token(
default_token,
celery_session_worker,
foo_token,
foo_token_symbol,
):
s = celery.signature(
'cic_eth.admin.token.default_token',
[],
queue=None,
)
t = s.apply_async()
r = t.get()
assert r['address'] == foo_token
assert r['symbol'] == foo_token_symbol