Skip to content

Commit c08cb3b

Browse files
authored
Merge pull request #1787 from polywrap/fix-python-plugin-template
fix: python plugin template tests pass
2 parents a1bed5a + 52f8862 commit c08cb3b

3 files changed

Lines changed: 237 additions & 3132 deletions

File tree

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
from hypothesis import given, strategies as st
22

3-
from polywrap_core import InvokeOptions
4-
53
from sample import sample_plugin
64

75
@given(st.text())
86
async def test_sample_method(s: str):
97
plugin = sample_plugin()
10-
wrapper = await plugin.create_wrapper()
11-
res = await wrapper.invoke(InvokeOptions(
8+
wrapper = plugin.create_wrapper()
9+
res = wrapper.invoke(
1210
uri="plugin/sample-plugin",
1311
method="sample_method",
1412
args={"data": s}
15-
), NotImplemented)
13+
)
1614

1715
assert not res.encoded
1816
assert res.result == f"{s} from sample_method"

0 commit comments

Comments
 (0)