|
1 | | -from abc import ABC |
2 | | - |
3 | | -from typing import Any, Dict, TypeVar, Generic, List, Union, Optional, List, cast |
| 1 | +""" |
| 2 | +Polywrap Python Client. |
| 3 | +
|
| 4 | +The Test suite for the Polywrap Client Config Builder uses pytest to |
| 5 | +test the various methods of the ClientConfigBuilder class. These tests |
| 6 | +include sample code for configuring the client's: |
| 7 | +- Envs |
| 8 | +- Interfaces |
| 9 | +- Packages |
| 10 | +- Redirects |
| 11 | +- Wrappers |
| 12 | +- Resolvers |
| 13 | +
|
| 14 | +docs.polywrap.io |
| 15 | +Copyright 2022 Polywrap |
| 16 | +""" |
4 | 17 |
|
| 18 | +from abc import ABC |
5 | 19 | from dataclasses import asdict |
6 | | - |
7 | | -from polywrap_core import IUriResolver, UriPackage, UriWrapper, IWrapPackage, AnyWrapManifest |
8 | | -from polywrap_core import Uri |
9 | | -from polywrap_core import Invoker, InvokeOptions, InvocableResult, GetFileOptions |
10 | | -from polywrap_core import IWrapPackage, Wrapper, GetManifestOptions |
| 20 | +from typing import Any, Dict, Generic, List, Optional, TypeVar, Union, cast |
11 | 21 |
|
12 | 22 | from polywrap_client import PolywrapClient |
13 | | - |
14 | | -from polywrap_client_config_builder import ClientConfigBuilder, BaseClientConfigBuilder, ClientConfig |
15 | | - |
| 23 | +from polywrap_core import ( |
| 24 | + AnyWrapManifest, |
| 25 | + GetFileOptions, |
| 26 | + GetManifestOptions, |
| 27 | + InvocableResult, |
| 28 | + InvokeOptions, |
| 29 | + Invoker, |
| 30 | + IUriResolver, |
| 31 | + IWrapPackage, |
| 32 | + Uri, |
| 33 | + UriPackage, |
| 34 | + UriWrapper, |
| 35 | + Wrapper, |
| 36 | +) |
16 | 37 | from polywrap_result import Err, Ok, Result |
17 | 38 |
|
18 | | -from polywrap_uri_resolvers import UriResolverLike |
| 39 | +from polywrap_client_config_builder import ( |
| 40 | + BaseClientConfigBuilder, |
| 41 | + ClientConfig, |
| 42 | + ClientConfigBuilder, |
| 43 | +) |
| 44 | + |
| 45 | +UriResolverLike = Union[Uri, UriPackage, UriWrapper, List["UriResolverLike"]] |
19 | 46 |
|
20 | 47 |
|
21 | 48 | # Mocked Classes for the tests (class fixtures arent supported in pytest) |
|
0 commit comments