Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/demo_tezos_etherlink/handlers/on_deposit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 10 additions & 1 deletion tests/test_config/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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])
2 changes: 1 addition & 1 deletion tests/test_demos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down