diff --git a/src/demo_tezos_etherlink/handlers/on_deposit.py b/src/demo_tezos_etherlink/handlers/on_deposit.py index 53083732f..cd390911f 100644 --- a/src/demo_tezos_etherlink/handlers/on_deposit.py +++ b/src/demo_tezos_etherlink/handlers/on_deposit.py @@ -21,7 +21,7 @@ async def on_deposit( match deposit.storage.token: case Token(fa12=str(address)): pass - case Token1(fa2=Fa2(address=str(address), nat='0')): + case Token1(fa2=Fa2(address=str(address))): pass case _: raise ValueError diff --git a/tests/test_config/test_config.py b/tests/test_config/test_config.py index c16e24070..d5d645138 100644 --- a/tests/test_config/test_config.py +++ b/tests/test_config/test_config.py @@ -24,7 +24,12 @@ TEST_CONFIGS = Path(__file__).parent.parent / 'configs' -@pytest.fixture(params=list(Path.glob(TEST_CONFIGS, 'demo_*.yml'))) +@pytest.fixture(params=Path.glob(TEST_CONFIGS, 'demo_*.yml')) +def test_dipdup_config(request: SubRequest) -> Generator[Path, None, None]: + yield request.param + + +@pytest.fixture(params=Path.glob(Path(__file__).parent.parent.parent / 'src', 'demo_*/dipdup.yaml')) def demo_dipdup_config(request: SubRequest) -> Generator[Path, None, None]: yield request.param @@ -157,3 +162,7 @@ async def test_http_config() -> None: async def test_load_demo_config(demo_dipdup_config: Path) -> None: DipDupConfig.load([demo_dipdup_config]) + + +async def test_load_test_config(test_dipdup_config: Path) -> None: + DipDupConfig.load([test_dipdup_config]) diff --git a/tests/test_demos.py b/tests/test_demos.py index e89152b2e..7cfd06775 100644 --- a/tests/test_demos.py +++ b/tests/test_demos.py @@ -196,7 +196,7 @@ async def assert_run_etherlink() -> None: ('demo_tezos_dex.yml', 'demo_tezos_dex', 'init', None), ('demo_tezos_domains.yml', 'demo_tezos_domains', 'run', assert_run_domains), ('demo_tezos_domains.yml', 'demo_tezos_domains', 'init', None), - ('demo_tezos_etherlink.yml', 'demo_tezos_etherlink', 'run', None), + ('demo_tezos_etherlink.yml', 'demo_tezos_etherlink', 'run', assert_run_etherlink), ('demo_tezos_etherlink.yml', 'demo_tezos_etherlink', 'init', None), ('demo_tezos_events.yml', 'demo_tezos_events', 'run', assert_run_events), ('demo_tezos_events.yml', 'demo_tezos_events', 'init', None),