cic-internal-integration/apps/cic-eth/tests/conftest.py

31 lines
772 B
Python
Raw Normal View History

2021-02-01 18:12:51 +01:00
# standard imports
import os
import sys
2021-03-13 21:31:37 +01:00
import logging
2021-02-01 18:12:51 +01:00
2021-03-21 19:39:38 +01:00
# local imports
from cic_eth.api import Api
2021-02-01 18:12:51 +01:00
script_dir = os.path.dirname(os.path.realpath(__file__))
root_dir = os.path.dirname(script_dir)
sys.path.insert(0, root_dir)
2021-03-21 19:39:38 +01:00
# assemble fixtures
2021-02-01 18:12:51 +01:00
from tests.fixtures_config import *
from tests.fixtures_database import *
from tests.fixtures_celery import *
2021-03-16 15:35:22 +01:00
from tests.fixtures_role import *
from chainlib.eth.pytest import *
2021-03-16 15:35:22 +01:00
from contract_registry.pytest import *
from cic_eth_registry.pytest.fixtures_contracts import *
2021-03-19 19:51:30 +01:00
from cic_eth_registry.pytest.fixtures_tokens import *
2021-03-21 19:39:38 +01:00
@pytest.fixture(scope='function')
def api(
default_chain_spec,
custodial_roles,
):
chain_str = str(default_chain_spec)
return Api(chain_str, queue=None, callback_param='foo')