Skip to content

Commit

Permalink
fix: return type of mock
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Jul 8, 2024
1 parent 5331fe4 commit 4f93a56
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
16 changes: 9 additions & 7 deletions tests/cassettes/test_carrier_account_update_ups.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion tests/test_carrier_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ def test_carrier_account_create_ups(prod_client):


@pytest.mark.vcr()
@patch("easypost.services.carrier_account_service.CarrierAccountService.retrieve")
@patch(
"easypost.services.carrier_account_service.CarrierAccountService.retrieve",
return_value={"type": "UpsAccount"},
)
def test_carrier_account_update_ups(mock_retrieve, prod_client):
"""Test updating a UPS Carrier Account.
Expand Down

0 comments on commit 4f93a56

Please sign in to comment.