File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11
11
import pytest
12
12
from async_substrate_interface import SubstrateInterface
13
13
14
- from bittensor .core .async_subtensor import AsyncSubtensor
15
- from bittensor .core .subtensor import Subtensor
14
+ from bittensor .core .subtensor_api import SubtensorApi
16
15
from bittensor .utils .btlogging import logging
17
16
from tests .e2e_tests .utils .e2e_test_utils import (
18
17
Templates ,
@@ -258,12 +257,12 @@ def templates():
258
257
259
258
@pytest .fixture
260
259
def subtensor (local_chain ):
261
- return Subtensor (network = "ws://localhost:9944" )
260
+ return SubtensorApi (network = "ws://localhost:9944" , legacy_methods = True )
262
261
263
262
264
263
@pytest .fixture
265
264
def async_subtensor (local_chain ):
266
- return AsyncSubtensor (network = "ws://localhost:9944" )
265
+ return SubtensorApi (network = "ws://localhost:9944" , legacy_methods = True , async_subtensor = True )
267
266
268
267
269
268
@pytest .fixture
You can’t perform that action at this time.
0 commit comments