11from pathlib import Path
2- from polywrap_client import PolywrapClient , PolywrapClientConfig
2+ from polywrap_client import PolywrapClient
33from polywrap_manifest import deserialize_wrap_manifest
4- from polywrap_core import Uri , InvokerOptions , FileReader , UriPackageOrWrapper
4+ from polywrap_core import Uri , InvokerOptions , FileReader , UriPackageOrWrapper , ClientConfig
55from polywrap_uri_resolvers import BaseUriResolver , SimpleFileReader , StaticResolver
66from polywrap_wasm import WasmWrapper
77
@@ -32,7 +32,7 @@ async def test_invoke(
3232 )
3333 resolver = StaticResolver ({Uri .from_str ("ens/wrapper.eth" ): wrapper })
3434
35- config = PolywrapClientConfig (resolver = resolver )
35+ config = ClientConfig (resolver = resolver )
3636 client = PolywrapClient (config = config )
3737
3838 args = {"arg" : "hello polywrap" }
@@ -57,7 +57,7 @@ async def test_subinvoke():
5757 },
5858 )
5959
60- client = PolywrapClient (config = PolywrapClientConfig (resolver = uri_resolver ))
60+ client = PolywrapClient (config = ClientConfig (resolver = uri_resolver ))
6161 uri = Uri .from_str (
6262 f'fs/{ Path (__file__ ).parent .joinpath ("cases" , "simple-subinvoke" , "invoke" ).absolute ()} '
6363 )
@@ -82,7 +82,7 @@ async def test_interface_implementation():
8282 )
8383
8484 client = PolywrapClient (
85- config = PolywrapClientConfig (
85+ config = ClientConfig (
8686 resolver = uri_resolver , interfaces = {interface_uri : [impl_uri ]}
8787 )
8888 )
@@ -109,7 +109,7 @@ def test_get_env_by_uri():
109109 env = {"externalArray" : [1 , 2 , 3 ], "externalString" : "hello" }
110110
111111 client = PolywrapClient (
112- config = PolywrapClientConfig (
112+ config = ClientConfig (
113113 envs = {uri : env },
114114 resolver = uri_resolver ,
115115 )
@@ -129,7 +129,7 @@ async def test_env():
129129 env = {"externalArray" : [1 , 2 , 3 ], "externalString" : "hello" }
130130
131131 client = PolywrapClient (
132- config = PolywrapClientConfig (
132+ config = ClientConfig (
133133 envs = {uri : env },
134134 resolver = uri_resolver ,
135135 )
0 commit comments