File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
async_substrate_interface
tests/unit_tests/asyncio_ Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change @@ -23,11 +23,7 @@ async def test_invalid_url_raises_exception():
2323
2424@pytest .mark .asyncio
2525async 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 ** {
You can’t perform that action at this time.
0 commit comments