We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a1bed5a + 52f8862 commit c08cb3bCopy full SHA for c08cb3b
3 files changed
packages/templates/plugin/python/tests/test_plugin.py
@@ -1,18 +1,16 @@
1
from hypothesis import given, strategies as st
2
3
-from polywrap_core import InvokeOptions
4
-
5
from sample import sample_plugin
6
7
@given(st.text())
8
async def test_sample_method(s: str):
9
plugin = sample_plugin()
10
- wrapper = await plugin.create_wrapper()
11
- res = await wrapper.invoke(InvokeOptions(
+ wrapper = plugin.create_wrapper()
+ res = wrapper.invoke(
12
uri="plugin/sample-plugin",
13
method="sample_method",
14
args={"data": s}
15
- ), NotImplemented)
+ )
16
17
assert not res.encoded
18
assert res.result == f"{s} from sample_method"
0 commit comments