Skip to content

Commit af3eafd

Browse files
author
Roman
committed
update subtensor usage in e2e tests
1 parent e35013c commit af3eafd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/e2e_tests/conftest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
import pytest
1212
from async_substrate_interface import SubstrateInterface
1313

14-
from bittensor.core.async_subtensor import AsyncSubtensor
15-
from bittensor.core.subtensor import Subtensor
14+
from bittensor.core.subtensor_api import SubtensorApi
1615
from bittensor.utils.btlogging import logging
1716
from tests.e2e_tests.utils.e2e_test_utils import (
1817
Templates,
@@ -258,12 +257,12 @@ def templates():
258257

259258
@pytest.fixture
260259
def subtensor(local_chain):
261-
return Subtensor(network="ws://localhost:9944")
260+
return SubtensorApi(network="ws://localhost:9944", legacy_methods=True)
262261

263262

264263
@pytest.fixture
265264
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)
267266

268267

269268
@pytest.fixture

0 commit comments

Comments
 (0)