Skip to content

Commit a52f356

Browse files
committed
Renamed tests/unittests/asyncio to asyncio_ to avoid name conflicts.
1 parent fab28fc commit a52f356

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

async_substrate_interface/async_substrate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,7 @@ def __init__(
732732
)
733733
else:
734734
self.ws = AsyncMock(spec=Websocket)
735+
735736
self._lock = asyncio.Lock()
736737
self.config = {
737738
"use_remote_preset": use_remote_preset,

tests/unit_tests/asyncio/test_substrate_interface.py renamed to tests/unit_tests/asyncio_/test_substrate_interface.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ async def test_invalid_url_raises_exception():
2323

2424
@pytest.mark.asyncio
2525
async def test_runtime_call(monkeypatch):
26-
monkeypatch.setattr(
27-
"async_substrate_interface.async_substrate.Websocket", unittest.mock.Mock()
28-
)
29-
30-
substrate = AsyncSubstrateInterface("ws://localhost")
26+
substrate = AsyncSubstrateInterface("ws://localhost", _mock=True)
3127
substrate._metadata = unittest.mock.Mock()
3228
substrate.metadata_v15 = unittest.mock.Mock(
3329
**{

0 commit comments

Comments
 (0)