Skip to content

Commit a782a01

Browse files
committed
fix: function name again
1 parent 3326e3a commit a782a01

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- Adds the following functions
66
- `shipment.create_and_buy_luma`
77
- `shipment.buy_luma`
8-
- `luma.recommend_service`
8+
- `luma.get_promise`
99
- Fixes `tracking_codes` filter when retrieving all tracking codes
1010

1111
## v10.0.1 (2025-05-27)

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 recommend_service(
21+
def get_promise(
2222
self,
2323
**params: dict[str, Any],
2424
) -> Shipment:
25-
"""Get service recommendations from Luma that meet your criteria."""
25+
"""Get service recommendations from Luma that meet the criteria of your ruleset."""
2626
url = "/luma/promise"
2727
wrapped_params = {
2828
self._snakecase_name("Shipment"): params,

tests/test_luma.py

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

33

44
@pytest.mark.vcr()
5-
def test_luma_recommend_service(
5+
def test_luma_get_promise(
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 service recommendations from Luma."""
12+
"""Test that we get service recommendations from Luma based on your ruleset."""
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-
recommendations = test_client.luma.recommend_service(**basic_shipment)
17+
recommendations = test_client.luma.get_promise(**basic_shipment)
1818

1919
assert recommendations.luma_info.luma_selected_rate is not None

0 commit comments

Comments
 (0)