File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments