Skip to content

Commit

Permalink
Merge pull request #267 from EasyPost/v7.13.0
Browse files Browse the repository at this point in the history
chore: prepare v7.13.0 for release
  • Loading branch information
Justintime50 authored May 2, 2023
2 parents bf2f9bb + 4990ae1 commit f74826e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CHANGELOG

## Next Release
## v7.13.0 (2023-05-02)

- Adds `retrieve_estimated_delivery_date` function to the Shipment class

Expand Down
2 changes: 1 addition & 1 deletion easypost/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = "7.12.0"
VERSION = "7.13.0"

numbers = [str(number) for number in VERSION.split(".")]
VERSION_INFO = numbers
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

setup(
name="easypost",
version="7.12.0",
version="7.13.0",
description="EasyPost Shipping API Client Library for Python",
author="EasyPost",
author_email="[email protected]",
Expand Down
5 changes: 5 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,3 +347,8 @@ def credit_card_details():
@pytest.fixture
def rma_form_options():
return read_fixture_data()["form_options"]["rma"]


@pytest.fixture
def planned_ship_date():
return "2023-04-28"
4 changes: 2 additions & 2 deletions tests/test_shipment.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,10 @@ def test_shipment_buy_with_end_shipper_id(ca_address_1, basic_shipment):


@pytest.mark.vcr()
def test_retrieve_estimated_delivery_date(basic_shipment):
def test_retrieve_estimated_delivery_date(basic_shipment, planned_ship_date):
"""Tests that we retrieve time-in-transit data for each of the Rates of a Shipment."""
shipment = easypost.Shipment.create(**basic_shipment)

rates = shipment.retrieve_estimated_delivery_date(planned_ship_date="2023-04-28")
rates = shipment.retrieve_estimated_delivery_date(planned_ship_date=planned_ship_date)

assert all(entry.get("easypost_time_in_transit_data") for entry in rates)

0 comments on commit f74826e

Please sign in to comment.