Skip to content

Commit a7e39c9

Browse files
authored
Merge pull request #365 from EasyPost/fix_luma_response
fix: luma response
2 parents b7d71f5 + 435f04e commit a7e39c9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

easypost/services/luma_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ def get_promise(
3030

3131
response = Requestor(self._client).request(method=RequestMethod.POST, url=url, params=wrapped_params)
3232

33-
return convert_to_easypost_object(response=response)
33+
return convert_to_easypost_object(response=response.get("luma_info", {}))

tests/test_luma.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ def test_luma_get_promise(
1212
basic_shipment["ruleset_name"] = luma_ruleset_name
1313
basic_shipment["planned_ship_date"] = luma_planned_ship_date
1414

15-
recommendations = test_client.luma.get_promise(**basic_shipment)
15+
response = test_client.luma.get_promise(**basic_shipment)
1616

17-
assert recommendations.luma_info.luma_selected_rate is not None
17+
assert response.luma_selected_rate is not None

0 commit comments

Comments
 (0)