Skip to content

Commit b2e208b

Browse files
committed
Adds test
1 parent 035bf47 commit b2e208b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import pytest
2+
3+
from bittensor_cli.src.bittensor.subtensor_interface import SubtensorInterface
4+
from bittensor_cli.src.commands.stake.children_hotkeys import (
5+
get_childkey_completion_block,
6+
)
7+
8+
9+
@pytest.mark.asyncio
10+
async def test_get_childkey_completion_block(local_chain):
11+
async with SubtensorInterface("ws://127.0.0.1:9945") as subtensor:
12+
current_block, completion_block = await get_childkey_completion_block(
13+
subtensor, 1
14+
)
15+
assert (completion_block - current_block) >= 7200

0 commit comments

Comments
 (0)