2021-04-24 19:49:21 +02:00
|
|
|
# external imports
|
|
|
|
import celery
|
|
|
|
|
|
|
|
|
|
|
|
def test_default_token(
|
|
|
|
default_token,
|
|
|
|
celery_session_worker,
|
|
|
|
foo_token,
|
|
|
|
foo_token_symbol,
|
|
|
|
):
|
|
|
|
|
|
|
|
s = celery.signature(
|
2021-10-09 15:06:21 +02:00
|
|
|
'cic_eth.eth.erc20.default_token',
|
2021-04-24 19:49:21 +02:00
|
|
|
[],
|
|
|
|
queue=None,
|
|
|
|
)
|
|
|
|
t = s.apply_async()
|
|
|
|
r = t.get()
|
|
|
|
|
|
|
|
assert r['address'] == foo_token
|
|
|
|
assert r['symbol'] == foo_token_symbol
|