Skip to content

Commit e333294

Browse files
committed
fix: name of function
1 parent e4138d5 commit e333294

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

easypost/services/luma_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ def __init__(self, client):
1818
self._client = client
1919
self._model_class = "Luma"
2020

21-
def get_promises(
21+
def recommend_service(
2222
self,
2323
**params: dict[str, Any],
2424
) -> Shipment:
25-
"""Get Luma promises on what rates meet your criteria."""
25+
"""Get service recommendations from Luma that meet your criteria."""
2626
url = "/luma/promise"
2727
wrapped_params = {
2828
self._snakecase_name("Shipment"): params,

tests/test_luma.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33

44
@pytest.mark.vcr()
5-
def test_luma_get_promises(
5+
def test_luma_recommend_service(
66
basic_shipment,
77
luma_ruleset_name,
88
luma_planned_ship_date,
99
luma_deliver_by_date,
1010
test_client,
1111
):
12-
"""Test that we get promises from Luma."""
12+
"""Test that we get service recommendations from Luma."""
1313
basic_shipment["ruleset_name"] = luma_ruleset_name
1414
basic_shipment["planned_ship_date"] = luma_planned_ship_date
1515
basic_shipment["deliver_by_date"] = luma_deliver_by_date
1616

17-
promises = test_client.luma.get_promises(**basic_shipment)
17+
recommendations = test_client.luma.recommend_service(**basic_shipment)
1818

19-
assert promises.luma_info.luma_selected_rate is not None
19+
assert recommendations.luma_info.luma_selected_rate is not None

0 commit comments

Comments
 (0)