Skip to content

Commit

Permalink
Added subscribe_to_blocks tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nessshon committed Jul 21, 2024
1 parent 9878cc0 commit 377eca4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/async_tonapi/test_sse_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from tests.async_tonapi import TestAsyncTonapi

ACCOUNT_ID = "Ef8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM0vF"
ACCOUNT_ID = "EQChB2eMoFG4ThuEsZ6ehlBPKJXOjNxlR5B7qKZNGIv256Da"
ACCOUNTS_IDS = ["ALL"]


Expand 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)
5 changes: 4 additions & 1 deletion tests/tonapi/test_sse_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from tests.tonapi import TestTonapi

ACCOUNT_ID = "Ef8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM0vF"
ACCOUNT_ID = "EQChB2eMoFG4ThuEsZ6ehlBPKJXOjNxlR5B7qKZNGIv256Da"
ACCOUNTS_IDS = ["ALL"]


Expand 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)

0 comments on commit 377eca4

Please sign in to comment.