bluehive 0.1.0a6__tar.gz → 0.1.0a8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/.gitignore +0 -1
- bluehive-0.1.0a8/.release-please-manifest.json +3 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/CHANGELOG.md +23 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/PKG-INFO +1 -1
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/pyproject.toml +2 -2
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_base_client.py +4 -1
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_files.py +4 -4
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_version.py +1 -1
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/api_resources/test_database.py +6 -6
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/api_resources/test_fax.py +22 -22
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/api_resources/test_health.py +6 -6
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/api_resources/test_providers.py +8 -8
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/api_resources/test_version.py +6 -6
- bluehive-0.1.0a6/.release-please-manifest.json +0 -3
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/CONTRIBUTING.md +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/LICENSE +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/README.md +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/SECURITY.md +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/api.md +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/bin/check-release-environment +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/bin/publish-pypi +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/examples/.keep +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/mypy.ini +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/noxfile.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/release-please-config.json +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/requirements-dev.lock +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/requirements.lock +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/__init__.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_client.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_compat.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_constants.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_exceptions.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_models.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_qs.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_resource.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_response.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_streaming.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_types.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_utils/__init__.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_utils/_logs.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_utils/_proxy.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_utils/_reflection.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_utils/_resources_proxy.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_utils/_streams.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_utils/_sync.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_utils/_transform.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_utils/_typing.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/_utils/_utils.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/lib/.keep +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/py.typed +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/resources/__init__.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/resources/database.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/resources/fax.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/resources/health.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/resources/providers.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/resources/version.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/types/__init__.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/types/database_check_health_response.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/types/fax_list_providers_response.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/types/fax_retrieve_status_response.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/types/fax_send_params.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/types/fax_send_response.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/types/health_check_response.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/types/provider_lookup_params.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/types/provider_lookup_response.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/src/bluehive/types/version_retrieve_response.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/__init__.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/api_resources/__init__.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/conftest.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/sample_file.txt +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/test_client.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/test_deepcopy.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/test_extract_files.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/test_files.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/test_models.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/test_qs.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/test_required_args.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/test_response.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/test_streaming.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/test_transform.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/test_utils/test_proxy.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/test_utils/test_typing.py +0 -0
- {bluehive-0.1.0a6 → bluehive-0.1.0a8}/tests/utils.py +0 -0
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.8 (2025-08-13)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.7...v0.1.0-alpha.8](https://github.com/bluehive-health/bluehive-sdk-python/compare/v0.1.0-alpha.7...v0.1.0-alpha.8)
|
|
6
|
+
|
|
7
|
+
### Chores
|
|
8
|
+
|
|
9
|
+
* **internal:** codegen related update ([6f04aff](https://github.com/bluehive-health/bluehive-sdk-python/commit/6f04afff1ae3b0d1f7d984c591af132408d433b8))
|
|
10
|
+
|
|
11
|
+
## 0.1.0-alpha.7 (2025-08-09)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.1.0-alpha.6...v0.1.0-alpha.7](https://github.com/bluehive-health/bluehive-sdk-python/compare/v0.1.0-alpha.6...v0.1.0-alpha.7)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **client:** support file upload requests ([97b5965](https://github.com/bluehive-health/bluehive-sdk-python/commit/97b59652bb608e71d907eac2edf2e31e9971f691))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
|
|
22
|
+
* **internal:** fix ruff target version ([14647cc](https://github.com/bluehive-health/bluehive-sdk-python/commit/14647cc4fffa3f022dded15d158a84f34dc433b9))
|
|
23
|
+
* **project:** add settings file for vscode ([c6ce060](https://github.com/bluehive-health/bluehive-sdk-python/commit/c6ce06020743ba8cf316a44f0694e61710b61edb))
|
|
24
|
+
* update @stainless-api/prism-cli to v5.15.0 ([85b2246](https://github.com/bluehive-health/bluehive-sdk-python/commit/85b2246ab0b26cc8efb0756893177dafa517b86a))
|
|
25
|
+
|
|
3
26
|
## 0.1.0-alpha.6 (2025-07-23)
|
|
4
27
|
|
|
5
28
|
Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/bluehive-health/bluehive-sdk-python/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: bluehive
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a8
|
|
4
4
|
Summary: The official Python library for the bluehive API
|
|
5
5
|
Project-URL: Homepage, https://github.com/bluehive-health/bluehive-sdk-python
|
|
6
6
|
Project-URL: Repository, https://github.com/bluehive-health/bluehive-sdk-python
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "bluehive"
|
|
3
|
-
version = "0.1.0-alpha.
|
|
3
|
+
version = "0.1.0-alpha.8"
|
|
4
4
|
description = "The official Python library for the bluehive API"
|
|
5
5
|
dynamic = ["readme"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -159,7 +159,7 @@ reportPrivateUsage = false
|
|
|
159
159
|
[tool.ruff]
|
|
160
160
|
line-length = 120
|
|
161
161
|
output-format = "grouped"
|
|
162
|
-
target-version = "
|
|
162
|
+
target-version = "py38"
|
|
163
163
|
|
|
164
164
|
[tool.ruff.format]
|
|
165
165
|
docstring-code-format = true
|
|
@@ -532,7 +532,10 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
|
|
|
532
532
|
is_body_allowed = options.method.lower() != "get"
|
|
533
533
|
|
|
534
534
|
if is_body_allowed:
|
|
535
|
-
|
|
535
|
+
if isinstance(json_data, bytes):
|
|
536
|
+
kwargs["content"] = json_data
|
|
537
|
+
else:
|
|
538
|
+
kwargs["json"] = json_data if is_given(json_data) else None
|
|
536
539
|
kwargs["files"] = files
|
|
537
540
|
else:
|
|
538
541
|
headers.pop("Content-Type", None)
|
|
@@ -69,12 +69,12 @@ def _transform_file(file: FileTypes) -> HttpxFileTypes:
|
|
|
69
69
|
return file
|
|
70
70
|
|
|
71
71
|
if is_tuple_t(file):
|
|
72
|
-
return (file[0],
|
|
72
|
+
return (file[0], read_file_content(file[1]), *file[2:])
|
|
73
73
|
|
|
74
74
|
raise TypeError(f"Expected file types input to be a FileContent type or to be a tuple")
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
def
|
|
77
|
+
def read_file_content(file: FileContent) -> HttpxFileContent:
|
|
78
78
|
if isinstance(file, os.PathLike):
|
|
79
79
|
return pathlib.Path(file).read_bytes()
|
|
80
80
|
return file
|
|
@@ -111,12 +111,12 @@ async def _async_transform_file(file: FileTypes) -> HttpxFileTypes:
|
|
|
111
111
|
return file
|
|
112
112
|
|
|
113
113
|
if is_tuple_t(file):
|
|
114
|
-
return (file[0], await
|
|
114
|
+
return (file[0], await async_read_file_content(file[1]), *file[2:])
|
|
115
115
|
|
|
116
116
|
raise TypeError(f"Expected file types input to be a FileContent type or to be a tuple")
|
|
117
117
|
|
|
118
118
|
|
|
119
|
-
async def
|
|
119
|
+
async def async_read_file_content(file: FileContent) -> HttpxFileContent:
|
|
120
120
|
if isinstance(file, os.PathLike):
|
|
121
121
|
return await anyio.Path(file).read_bytes()
|
|
122
122
|
|
|
@@ -17,13 +17,13 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
|
|
|
17
17
|
class TestDatabase:
|
|
18
18
|
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
|
|
19
19
|
|
|
20
|
-
@pytest.mark.skip()
|
|
20
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
21
21
|
@parametrize
|
|
22
22
|
def test_method_check_health(self, client: BlueHive) -> None:
|
|
23
23
|
database = client.database.check_health()
|
|
24
24
|
assert_matches_type(DatabaseCheckHealthResponse, database, path=["response"])
|
|
25
25
|
|
|
26
|
-
@pytest.mark.skip()
|
|
26
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
27
27
|
@parametrize
|
|
28
28
|
def test_raw_response_check_health(self, client: BlueHive) -> None:
|
|
29
29
|
response = client.database.with_raw_response.check_health()
|
|
@@ -33,7 +33,7 @@ class TestDatabase:
|
|
|
33
33
|
database = response.parse()
|
|
34
34
|
assert_matches_type(DatabaseCheckHealthResponse, database, path=["response"])
|
|
35
35
|
|
|
36
|
-
@pytest.mark.skip()
|
|
36
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
37
37
|
@parametrize
|
|
38
38
|
def test_streaming_response_check_health(self, client: BlueHive) -> None:
|
|
39
39
|
with client.database.with_streaming_response.check_health() as response:
|
|
@@ -51,13 +51,13 @@ class TestAsyncDatabase:
|
|
|
51
51
|
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
|
|
52
52
|
)
|
|
53
53
|
|
|
54
|
-
@pytest.mark.skip()
|
|
54
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
55
55
|
@parametrize
|
|
56
56
|
async def test_method_check_health(self, async_client: AsyncBlueHive) -> None:
|
|
57
57
|
database = await async_client.database.check_health()
|
|
58
58
|
assert_matches_type(DatabaseCheckHealthResponse, database, path=["response"])
|
|
59
59
|
|
|
60
|
-
@pytest.mark.skip()
|
|
60
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
61
61
|
@parametrize
|
|
62
62
|
async def test_raw_response_check_health(self, async_client: AsyncBlueHive) -> None:
|
|
63
63
|
response = await async_client.database.with_raw_response.check_health()
|
|
@@ -67,7 +67,7 @@ class TestAsyncDatabase:
|
|
|
67
67
|
database = await response.parse()
|
|
68
68
|
assert_matches_type(DatabaseCheckHealthResponse, database, path=["response"])
|
|
69
69
|
|
|
70
|
-
@pytest.mark.skip()
|
|
70
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
71
71
|
@parametrize
|
|
72
72
|
async def test_streaming_response_check_health(self, async_client: AsyncBlueHive) -> None:
|
|
73
73
|
async with async_client.database.with_streaming_response.check_health() as response:
|
|
@@ -17,13 +17,13 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
|
|
|
17
17
|
class TestFax:
|
|
18
18
|
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
|
|
19
19
|
|
|
20
|
-
@pytest.mark.skip()
|
|
20
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
21
21
|
@parametrize
|
|
22
22
|
def test_method_list_providers(self, client: BlueHive) -> None:
|
|
23
23
|
fax = client.fax.list_providers()
|
|
24
24
|
assert_matches_type(FaxListProvidersResponse, fax, path=["response"])
|
|
25
25
|
|
|
26
|
-
@pytest.mark.skip()
|
|
26
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
27
27
|
@parametrize
|
|
28
28
|
def test_raw_response_list_providers(self, client: BlueHive) -> None:
|
|
29
29
|
response = client.fax.with_raw_response.list_providers()
|
|
@@ -33,7 +33,7 @@ class TestFax:
|
|
|
33
33
|
fax = response.parse()
|
|
34
34
|
assert_matches_type(FaxListProvidersResponse, fax, path=["response"])
|
|
35
35
|
|
|
36
|
-
@pytest.mark.skip()
|
|
36
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
37
37
|
@parametrize
|
|
38
38
|
def test_streaming_response_list_providers(self, client: BlueHive) -> None:
|
|
39
39
|
with client.fax.with_streaming_response.list_providers() as response:
|
|
@@ -45,7 +45,7 @@ class TestFax:
|
|
|
45
45
|
|
|
46
46
|
assert cast(Any, response.is_closed) is True
|
|
47
47
|
|
|
48
|
-
@pytest.mark.skip()
|
|
48
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
49
49
|
@parametrize
|
|
50
50
|
def test_method_retrieve_status(self, client: BlueHive) -> None:
|
|
51
51
|
fax = client.fax.retrieve_status(
|
|
@@ -53,7 +53,7 @@ class TestFax:
|
|
|
53
53
|
)
|
|
54
54
|
assert_matches_type(FaxRetrieveStatusResponse, fax, path=["response"])
|
|
55
55
|
|
|
56
|
-
@pytest.mark.skip()
|
|
56
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
57
57
|
@parametrize
|
|
58
58
|
def test_raw_response_retrieve_status(self, client: BlueHive) -> None:
|
|
59
59
|
response = client.fax.with_raw_response.retrieve_status(
|
|
@@ -65,7 +65,7 @@ class TestFax:
|
|
|
65
65
|
fax = response.parse()
|
|
66
66
|
assert_matches_type(FaxRetrieveStatusResponse, fax, path=["response"])
|
|
67
67
|
|
|
68
|
-
@pytest.mark.skip()
|
|
68
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
69
69
|
@parametrize
|
|
70
70
|
def test_streaming_response_retrieve_status(self, client: BlueHive) -> None:
|
|
71
71
|
with client.fax.with_streaming_response.retrieve_status(
|
|
@@ -79,7 +79,7 @@ class TestFax:
|
|
|
79
79
|
|
|
80
80
|
assert cast(Any, response.is_closed) is True
|
|
81
81
|
|
|
82
|
-
@pytest.mark.skip()
|
|
82
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
83
83
|
@parametrize
|
|
84
84
|
def test_path_params_retrieve_status(self, client: BlueHive) -> None:
|
|
85
85
|
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
|
|
@@ -87,7 +87,7 @@ class TestFax:
|
|
|
87
87
|
"",
|
|
88
88
|
)
|
|
89
89
|
|
|
90
|
-
@pytest.mark.skip()
|
|
90
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
91
91
|
@parametrize
|
|
92
92
|
def test_method_send(self, client: BlueHive) -> None:
|
|
93
93
|
fax = client.fax.send(
|
|
@@ -99,7 +99,7 @@ class TestFax:
|
|
|
99
99
|
)
|
|
100
100
|
assert_matches_type(FaxSendResponse, fax, path=["response"])
|
|
101
101
|
|
|
102
|
-
@pytest.mark.skip()
|
|
102
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
103
103
|
@parametrize
|
|
104
104
|
def test_method_send_with_all_params(self, client: BlueHive) -> None:
|
|
105
105
|
fax = client.fax.send(
|
|
@@ -115,7 +115,7 @@ class TestFax:
|
|
|
115
115
|
)
|
|
116
116
|
assert_matches_type(FaxSendResponse, fax, path=["response"])
|
|
117
117
|
|
|
118
|
-
@pytest.mark.skip()
|
|
118
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
119
119
|
@parametrize
|
|
120
120
|
def test_raw_response_send(self, client: BlueHive) -> None:
|
|
121
121
|
response = client.fax.with_raw_response.send(
|
|
@@ -131,7 +131,7 @@ class TestFax:
|
|
|
131
131
|
fax = response.parse()
|
|
132
132
|
assert_matches_type(FaxSendResponse, fax, path=["response"])
|
|
133
133
|
|
|
134
|
-
@pytest.mark.skip()
|
|
134
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
135
135
|
@parametrize
|
|
136
136
|
def test_streaming_response_send(self, client: BlueHive) -> None:
|
|
137
137
|
with client.fax.with_streaming_response.send(
|
|
@@ -155,13 +155,13 @@ class TestAsyncFax:
|
|
|
155
155
|
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
|
|
156
156
|
)
|
|
157
157
|
|
|
158
|
-
@pytest.mark.skip()
|
|
158
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
159
159
|
@parametrize
|
|
160
160
|
async def test_method_list_providers(self, async_client: AsyncBlueHive) -> None:
|
|
161
161
|
fax = await async_client.fax.list_providers()
|
|
162
162
|
assert_matches_type(FaxListProvidersResponse, fax, path=["response"])
|
|
163
163
|
|
|
164
|
-
@pytest.mark.skip()
|
|
164
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
165
165
|
@parametrize
|
|
166
166
|
async def test_raw_response_list_providers(self, async_client: AsyncBlueHive) -> None:
|
|
167
167
|
response = await async_client.fax.with_raw_response.list_providers()
|
|
@@ -171,7 +171,7 @@ class TestAsyncFax:
|
|
|
171
171
|
fax = await response.parse()
|
|
172
172
|
assert_matches_type(FaxListProvidersResponse, fax, path=["response"])
|
|
173
173
|
|
|
174
|
-
@pytest.mark.skip()
|
|
174
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
175
175
|
@parametrize
|
|
176
176
|
async def test_streaming_response_list_providers(self, async_client: AsyncBlueHive) -> None:
|
|
177
177
|
async with async_client.fax.with_streaming_response.list_providers() as response:
|
|
@@ -183,7 +183,7 @@ class TestAsyncFax:
|
|
|
183
183
|
|
|
184
184
|
assert cast(Any, response.is_closed) is True
|
|
185
185
|
|
|
186
|
-
@pytest.mark.skip()
|
|
186
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
187
187
|
@parametrize
|
|
188
188
|
async def test_method_retrieve_status(self, async_client: AsyncBlueHive) -> None:
|
|
189
189
|
fax = await async_client.fax.retrieve_status(
|
|
@@ -191,7 +191,7 @@ class TestAsyncFax:
|
|
|
191
191
|
)
|
|
192
192
|
assert_matches_type(FaxRetrieveStatusResponse, fax, path=["response"])
|
|
193
193
|
|
|
194
|
-
@pytest.mark.skip()
|
|
194
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
195
195
|
@parametrize
|
|
196
196
|
async def test_raw_response_retrieve_status(self, async_client: AsyncBlueHive) -> None:
|
|
197
197
|
response = await async_client.fax.with_raw_response.retrieve_status(
|
|
@@ -203,7 +203,7 @@ class TestAsyncFax:
|
|
|
203
203
|
fax = await response.parse()
|
|
204
204
|
assert_matches_type(FaxRetrieveStatusResponse, fax, path=["response"])
|
|
205
205
|
|
|
206
|
-
@pytest.mark.skip()
|
|
206
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
207
207
|
@parametrize
|
|
208
208
|
async def test_streaming_response_retrieve_status(self, async_client: AsyncBlueHive) -> None:
|
|
209
209
|
async with async_client.fax.with_streaming_response.retrieve_status(
|
|
@@ -217,7 +217,7 @@ class TestAsyncFax:
|
|
|
217
217
|
|
|
218
218
|
assert cast(Any, response.is_closed) is True
|
|
219
219
|
|
|
220
|
-
@pytest.mark.skip()
|
|
220
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
221
221
|
@parametrize
|
|
222
222
|
async def test_path_params_retrieve_status(self, async_client: AsyncBlueHive) -> None:
|
|
223
223
|
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
|
|
@@ -225,7 +225,7 @@ class TestAsyncFax:
|
|
|
225
225
|
"",
|
|
226
226
|
)
|
|
227
227
|
|
|
228
|
-
@pytest.mark.skip()
|
|
228
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
229
229
|
@parametrize
|
|
230
230
|
async def test_method_send(self, async_client: AsyncBlueHive) -> None:
|
|
231
231
|
fax = await async_client.fax.send(
|
|
@@ -237,7 +237,7 @@ class TestAsyncFax:
|
|
|
237
237
|
)
|
|
238
238
|
assert_matches_type(FaxSendResponse, fax, path=["response"])
|
|
239
239
|
|
|
240
|
-
@pytest.mark.skip()
|
|
240
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
241
241
|
@parametrize
|
|
242
242
|
async def test_method_send_with_all_params(self, async_client: AsyncBlueHive) -> None:
|
|
243
243
|
fax = await async_client.fax.send(
|
|
@@ -253,7 +253,7 @@ class TestAsyncFax:
|
|
|
253
253
|
)
|
|
254
254
|
assert_matches_type(FaxSendResponse, fax, path=["response"])
|
|
255
255
|
|
|
256
|
-
@pytest.mark.skip()
|
|
256
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
257
257
|
@parametrize
|
|
258
258
|
async def test_raw_response_send(self, async_client: AsyncBlueHive) -> None:
|
|
259
259
|
response = await async_client.fax.with_raw_response.send(
|
|
@@ -269,7 +269,7 @@ class TestAsyncFax:
|
|
|
269
269
|
fax = await response.parse()
|
|
270
270
|
assert_matches_type(FaxSendResponse, fax, path=["response"])
|
|
271
271
|
|
|
272
|
-
@pytest.mark.skip()
|
|
272
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
273
273
|
@parametrize
|
|
274
274
|
async def test_streaming_response_send(self, async_client: AsyncBlueHive) -> None:
|
|
275
275
|
async with async_client.fax.with_streaming_response.send(
|
|
@@ -17,13 +17,13 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
|
|
|
17
17
|
class TestHealth:
|
|
18
18
|
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
|
|
19
19
|
|
|
20
|
-
@pytest.mark.skip()
|
|
20
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
21
21
|
@parametrize
|
|
22
22
|
def test_method_check(self, client: BlueHive) -> None:
|
|
23
23
|
health = client.health.check()
|
|
24
24
|
assert_matches_type(HealthCheckResponse, health, path=["response"])
|
|
25
25
|
|
|
26
|
-
@pytest.mark.skip()
|
|
26
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
27
27
|
@parametrize
|
|
28
28
|
def test_raw_response_check(self, client: BlueHive) -> None:
|
|
29
29
|
response = client.health.with_raw_response.check()
|
|
@@ -33,7 +33,7 @@ class TestHealth:
|
|
|
33
33
|
health = response.parse()
|
|
34
34
|
assert_matches_type(HealthCheckResponse, health, path=["response"])
|
|
35
35
|
|
|
36
|
-
@pytest.mark.skip()
|
|
36
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
37
37
|
@parametrize
|
|
38
38
|
def test_streaming_response_check(self, client: BlueHive) -> None:
|
|
39
39
|
with client.health.with_streaming_response.check() as response:
|
|
@@ -51,13 +51,13 @@ class TestAsyncHealth:
|
|
|
51
51
|
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
|
|
52
52
|
)
|
|
53
53
|
|
|
54
|
-
@pytest.mark.skip()
|
|
54
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
55
55
|
@parametrize
|
|
56
56
|
async def test_method_check(self, async_client: AsyncBlueHive) -> None:
|
|
57
57
|
health = await async_client.health.check()
|
|
58
58
|
assert_matches_type(HealthCheckResponse, health, path=["response"])
|
|
59
59
|
|
|
60
|
-
@pytest.mark.skip()
|
|
60
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
61
61
|
@parametrize
|
|
62
62
|
async def test_raw_response_check(self, async_client: AsyncBlueHive) -> None:
|
|
63
63
|
response = await async_client.health.with_raw_response.check()
|
|
@@ -67,7 +67,7 @@ class TestAsyncHealth:
|
|
|
67
67
|
health = await response.parse()
|
|
68
68
|
assert_matches_type(HealthCheckResponse, health, path=["response"])
|
|
69
69
|
|
|
70
|
-
@pytest.mark.skip()
|
|
70
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
71
71
|
@parametrize
|
|
72
72
|
async def test_streaming_response_check(self, async_client: AsyncBlueHive) -> None:
|
|
73
73
|
async with async_client.health.with_streaming_response.check() as response:
|
|
@@ -17,13 +17,13 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
|
|
|
17
17
|
class TestProviders:
|
|
18
18
|
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
|
|
19
19
|
|
|
20
|
-
@pytest.mark.skip()
|
|
20
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
21
21
|
@parametrize
|
|
22
22
|
def test_method_lookup(self, client: BlueHive) -> None:
|
|
23
23
|
provider = client.providers.lookup()
|
|
24
24
|
assert_matches_type(ProviderLookupResponse, provider, path=["response"])
|
|
25
25
|
|
|
26
|
-
@pytest.mark.skip()
|
|
26
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
27
27
|
@parametrize
|
|
28
28
|
def test_method_lookup_with_all_params(self, client: BlueHive) -> None:
|
|
29
29
|
provider = client.providers.lookup(
|
|
@@ -34,7 +34,7 @@ class TestProviders:
|
|
|
34
34
|
)
|
|
35
35
|
assert_matches_type(ProviderLookupResponse, provider, path=["response"])
|
|
36
36
|
|
|
37
|
-
@pytest.mark.skip()
|
|
37
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
38
38
|
@parametrize
|
|
39
39
|
def test_raw_response_lookup(self, client: BlueHive) -> None:
|
|
40
40
|
response = client.providers.with_raw_response.lookup()
|
|
@@ -44,7 +44,7 @@ class TestProviders:
|
|
|
44
44
|
provider = response.parse()
|
|
45
45
|
assert_matches_type(ProviderLookupResponse, provider, path=["response"])
|
|
46
46
|
|
|
47
|
-
@pytest.mark.skip()
|
|
47
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
48
48
|
@parametrize
|
|
49
49
|
def test_streaming_response_lookup(self, client: BlueHive) -> None:
|
|
50
50
|
with client.providers.with_streaming_response.lookup() as response:
|
|
@@ -62,13 +62,13 @@ class TestAsyncProviders:
|
|
|
62
62
|
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
|
|
63
63
|
)
|
|
64
64
|
|
|
65
|
-
@pytest.mark.skip()
|
|
65
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
66
66
|
@parametrize
|
|
67
67
|
async def test_method_lookup(self, async_client: AsyncBlueHive) -> None:
|
|
68
68
|
provider = await async_client.providers.lookup()
|
|
69
69
|
assert_matches_type(ProviderLookupResponse, provider, path=["response"])
|
|
70
70
|
|
|
71
|
-
@pytest.mark.skip()
|
|
71
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
72
72
|
@parametrize
|
|
73
73
|
async def test_method_lookup_with_all_params(self, async_client: AsyncBlueHive) -> None:
|
|
74
74
|
provider = await async_client.providers.lookup(
|
|
@@ -79,7 +79,7 @@ class TestAsyncProviders:
|
|
|
79
79
|
)
|
|
80
80
|
assert_matches_type(ProviderLookupResponse, provider, path=["response"])
|
|
81
81
|
|
|
82
|
-
@pytest.mark.skip()
|
|
82
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
83
83
|
@parametrize
|
|
84
84
|
async def test_raw_response_lookup(self, async_client: AsyncBlueHive) -> None:
|
|
85
85
|
response = await async_client.providers.with_raw_response.lookup()
|
|
@@ -89,7 +89,7 @@ class TestAsyncProviders:
|
|
|
89
89
|
provider = await response.parse()
|
|
90
90
|
assert_matches_type(ProviderLookupResponse, provider, path=["response"])
|
|
91
91
|
|
|
92
|
-
@pytest.mark.skip()
|
|
92
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
93
93
|
@parametrize
|
|
94
94
|
async def test_streaming_response_lookup(self, async_client: AsyncBlueHive) -> None:
|
|
95
95
|
async with async_client.providers.with_streaming_response.lookup() as response:
|
|
@@ -17,13 +17,13 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
|
|
|
17
17
|
class TestVersion:
|
|
18
18
|
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
|
|
19
19
|
|
|
20
|
-
@pytest.mark.skip()
|
|
20
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
21
21
|
@parametrize
|
|
22
22
|
def test_method_retrieve(self, client: BlueHive) -> None:
|
|
23
23
|
version = client.version.retrieve()
|
|
24
24
|
assert_matches_type(VersionRetrieveResponse, version, path=["response"])
|
|
25
25
|
|
|
26
|
-
@pytest.mark.skip()
|
|
26
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
27
27
|
@parametrize
|
|
28
28
|
def test_raw_response_retrieve(self, client: BlueHive) -> None:
|
|
29
29
|
response = client.version.with_raw_response.retrieve()
|
|
@@ -33,7 +33,7 @@ class TestVersion:
|
|
|
33
33
|
version = response.parse()
|
|
34
34
|
assert_matches_type(VersionRetrieveResponse, version, path=["response"])
|
|
35
35
|
|
|
36
|
-
@pytest.mark.skip()
|
|
36
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
37
37
|
@parametrize
|
|
38
38
|
def test_streaming_response_retrieve(self, client: BlueHive) -> None:
|
|
39
39
|
with client.version.with_streaming_response.retrieve() as response:
|
|
@@ -51,13 +51,13 @@ class TestAsyncVersion:
|
|
|
51
51
|
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
|
|
52
52
|
)
|
|
53
53
|
|
|
54
|
-
@pytest.mark.skip()
|
|
54
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
55
55
|
@parametrize
|
|
56
56
|
async def test_method_retrieve(self, async_client: AsyncBlueHive) -> None:
|
|
57
57
|
version = await async_client.version.retrieve()
|
|
58
58
|
assert_matches_type(VersionRetrieveResponse, version, path=["response"])
|
|
59
59
|
|
|
60
|
-
@pytest.mark.skip()
|
|
60
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
61
61
|
@parametrize
|
|
62
62
|
async def test_raw_response_retrieve(self, async_client: AsyncBlueHive) -> None:
|
|
63
63
|
response = await async_client.version.with_raw_response.retrieve()
|
|
@@ -67,7 +67,7 @@ class TestAsyncVersion:
|
|
|
67
67
|
version = await response.parse()
|
|
68
68
|
assert_matches_type(VersionRetrieveResponse, version, path=["response"])
|
|
69
69
|
|
|
70
|
-
@pytest.mark.skip()
|
|
70
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
71
71
|
@parametrize
|
|
72
72
|
async def test_streaming_response_retrieve(self, async_client: AsyncBlueHive) -> None:
|
|
73
73
|
async with async_client.version.with_streaming_response.retrieve() as response:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|