How To Strufture A Blog Post

Timeline For Product Development

product development timeline example top 10 product development timeline templates with examples and samples product development timeline example edrawmax template product development timeline ppt template product development timeline template edrawmax template top 10 product development timeline templates with examples and samples timeline roadmap for successful product development process strategic top 10 product development roadmap templates with examples and samples timeline roadmap for successful product development process powerpoint product development timeline roadmap releases design milestone strategy how to develop a product understanding the timeline product development timeline slide team product development timeline slide team product development timeline edrawmax template product development using agile addressing product development timeline 2 month timeline of product development process presentation graphics top 10 product development timeline templates with examples and samples product development implementation timeline powerpoint graphics product development timeline template product development phase timeline powerpoint template timeline product development timeline slide team top 10 product development timeline templates with examples and samples top 10 product development timeline templates with examples and samples product development timeline template and google slides top 10 new product development with 6 steps timeline powerpoint product development timeline ppt powerpoint presentation infographics examp 2 month timeline for product development planning process how to create a marketing timeline in 6 steps templates top 5 product development pipeline templates with examples and samples 30 product roadmap templates examples and tips venngage easy product development timeline template wordlayouts product development timeline roadmap guide to introduce new product in top 10 product development timeline templates with examples and samples product development timeline slide team product development timeline xmind mind mapping software

:
Clos De Book Design
Cover malformed successful query responses
1 parent Pre-Launch Awareness commit e166888

Product development timeline example edrawmax template 4 files changed Strategic Planning Action Plan Template

Lines changed: 51 additions & 0 deletions

New Service Launch Social Media Post Timeline For Product Development

src/vws/async_query.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ async def query(
122122
error with Vuforia's servers.
123123
~vws.exceptions.base_exceptions.CloudRecoError: Vuforia returned
124124
a client error without a recognized JSON body.
125+
json.JSONDecodeError: Vuforia returned a successful response with
126+
an invalid JSON body.
125127
126128
Returns:
127129
An ordered list of target details of matching

src/vws/query.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ def query(
104104
error with Vuforia's servers.
105105
~vws.exceptions.base_exceptions.CloudRecoError: Vuforia returned
106106
a client error without a recognized JSON body.
107+
json.JSONDecodeError: Vuforia returned a successful response with
108+
an invalid JSON body.
107109
108110
Returns:
109111
An ordered list of target details of matching targets.

tests/test_async_cloud_reco_exceptions.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"""
44

55
import io # noqa: TC003
6+
import json
67
import uuid
78
from http import HTTPStatus
89

@@ -168,3 +169,26 @@ async def test_non_json_client_error(
168169
}
169170
assert response_headers["x-query-failure"] == headers["X-Query-Failure"]
170171
assert response.request_body
172+
173+
174+
@pytest.mark.asyncio
175+
async def test_non_json_success_response(
176+
*,
177+
high_quality_image: io.BytesIO,
178+
) -> None:
179+
"""Malformed successful responses retain the JSON parsing error."""
180+
database = CloudDatabase()
181+
failure_response = CloudQueryFailureResponse(
182+
status_code=HTTPStatus.OK,
183+
headers={"Content-Type": "application/json"},
184+
body="Not JSON",
185+
)
186+
cloud_reco_client = AsyncCloudRecoService(
187+
client_access_key=database.client_access_key,
188+
client_secret_key=database.client_secret_key,
189+
)
190+
191+
with MockVWS(cloud_query_failure_response=failure_response) as mock:
192+
mock.add_cloud_database(cloud_database=database)
193+
with pytest.raises(expected_exception=json.JSONDecodeError):
194+
await cloud_reco_client.query(image=high_quality_image)

tests/test_cloud_reco_exceptions.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Tests for exceptions raised when using the CloudRecoService."""
22

33
import io # noqa: TC003
4+
import json
45
import uuid
56
from http import HTTPStatus
67

@@ -174,3 +175,25 @@ def test_non_json_client_error(
174175
}
175176
assert response_headers["x-query-failure"] == headers["X-Query-Failure"]
176177
assert response.request_body
178+
179+
180+
def test_non_json_success_response(
181+
*,
182+
high_quality_image: io.BytesIO,
183+
) -> None:
184+
"""Malformed successful responses retain the JSON parsing error."""
185+
database = CloudDatabase()
186+
failure_response = CloudQueryFailureResponse(
187+
status_code=HTTPStatus.OK,
188+
headers={"Content-Type": "application/json"},
189+
body="Not JSON",
190+
)
191+
cloud_reco_client = CloudRecoService(
192+
client_access_key=database.client_access_key,
193+
client_secret_key=database.client_secret_key,
194+
)
195+
196+
with MockVWS(cloud_query_failure_response=failure_response) as mock:
197+
mock.add_cloud_database(cloud_database=database)
198+
with pytest.raises(expected_exception=json.JSONDecodeError):
199+
cloud_reco_client.query(image=high_quality_image)

Business Rewards Credit Cards Timeline For Product Development

Comments
 (0)