From 377eca421af3190e9f96573800429ffa28e5898d Mon Sep 17 00:00:00 2001 From: nessshon Date: Sun, 21 Jul 2024 11:06:09 +0500 Subject: [PATCH] Added `subscribe_to_blocks` tests. --- tests/async_tonapi/test_sse_methods.py | 5 ++++- tests/tonapi/test_sse_methods.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/async_tonapi/test_sse_methods.py b/tests/async_tonapi/test_sse_methods.py index 10d37d0..aff160d 100644 --- a/tests/async_tonapi/test_sse_methods.py +++ b/tests/async_tonapi/test_sse_methods.py @@ -2,7 +2,7 @@ from tests.async_tonapi import TestAsyncTonapi -ACCOUNT_ID = "Ef8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM0vF" +ACCOUNT_ID = "EQChB2eMoFG4ThuEsZ6ehlBPKJXOjNxlR5B7qKZNGIv256Da" ACCOUNTS_IDS = ["ALL"] @@ -20,3 +20,6 @@ async def test_subscribe_to_traces(self): async def test_subscribe_to_mempool(self): await self.tonapi.sse.subscribe_to_mempool([ACCOUNT_ID], handler) + + async def test_subscribe_to_blocks(self): + await self.tonapi.sse.subscribe_to_blocks(None, handler=handler) diff --git a/tests/tonapi/test_sse_methods.py b/tests/tonapi/test_sse_methods.py index 65a8fbc..d0c56c6 100644 --- a/tests/tonapi/test_sse_methods.py +++ b/tests/tonapi/test_sse_methods.py @@ -2,7 +2,7 @@ from tests.tonapi import TestTonapi -ACCOUNT_ID = "Ef8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM0vF" +ACCOUNT_ID = "EQChB2eMoFG4ThuEsZ6ehlBPKJXOjNxlR5B7qKZNGIv256Da" ACCOUNTS_IDS = ["ALL"] @@ -20,3 +20,6 @@ def test_subscribe_to_traces(self): def test_subscribe_to_mempool(self): self.tonapi.sse.subscribe_to_mempool([ACCOUNT_ID], handler) + + def test_subscribe_to_blocks(self): + self.tonapi.sse.subscribe_to_blocks(None, handler=handler)