Jayesh Guru
10/31/2022, 12:11 PMasset_classifier_pact.given(
"mpid and brand catalog id to retrieve templates"
).upon_receiving("return all templates for mpid").with_request(
method="GET",
path=api_path,
query=req_query_param,
headers=req_headers,
).will_respond_with(
status=200,
body={
"templates_are_approved_for_auto_select": None,
"templates": EachLike(
{
"id": 1,
"asset_id": "<any-uuid>",
"factory_source_id": 1,
"factory_id": "1",
"is_manual_selection": False,
"status_id": 3,
"associations": [
{
"association_id": 1,
"association_source": 1,
"imagery_template_id": 1,
"id": 1,
}
],
"manufacturer_part_id": 1,
"class_id": 1,
"bounding_box": {
"minimum_width": 34.0,
"minimum_height": 35.0,
"minimum_depth": 1.0,
"maximum_width": 40.0,
"maximum_height": 40.0,
"maximum_depth": 3.0,
},
"gs_type_name": "WallMirrorLargeRound",
"optimized_for_automation": "No",
}
),
},
)
Jayesh Guru
10/31/2022, 12:11 PMJayesh Guru
10/31/2022, 12:12 PMJayesh Guru
11/02/2022, 1:27 PMYousaf Nabi (pactflow.io)
Slackbot
11/02/2022, 4:15 PMJayesh Guru
11/02/2022, 4:19 PM