Skip to content

Commit 5e660b6

Browse files
committed
fix(polywrap-wasm): tests
1 parent 1458649 commit 5e660b6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/polywrap-wasm/tests/test_wasm_wrapper.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from typing import List
12
import pytest
23

34
from pathlib import Path
@@ -9,11 +10,17 @@
910

1011
from polywrap_wasm.constants import WRAP_MANIFEST_PATH
1112

13+
from result import Result, Err
14+
1215
@pytest.fixture
1316
def mock_invoker():
1417
class MockInvoker(Invoker):
1518
async def invoke(self, options: InvokerOptions) -> InvokeResult:
1619
return InvokeResult()
20+
21+
def get_implementations(self, uri: Uri) -> Result[List[Uri], Exception]:
22+
return Err(NotImplementedError())
23+
1724
return MockInvoker()
1825

1926

0 commit comments

Comments
 (0)