diff --git a/Makefile b/Makefile index a7092d26..362c95ef 100644 --- a/Makefile +++ b/Makefile @@ -37,8 +37,13 @@ docs: flake8: $(VIRTUAL_BIN)/flake8 $(PROJECT_NAME)/ $(TEST_DIR)/ --append-config examples/style_guides/python/.flake8 +## init-examples-submodule - Initialize the examples submodule +init-examples-submodule: + git submodule init + git submodule update + ## install - Install the project locally -install: | update-examples-submodule +install: | init-examples-submodule $(PYTHON_BINARY) -m venv $(VIRTUAL_ENV) $(VIRTUAL_BIN)/pip install -e ."[dev]" diff --git a/tests/test_carrier_account.py b/tests/test_carrier_account.py index 07be3cfa..72e1a698 100644 --- a/tests/test_carrier_account.py +++ b/tests/test_carrier_account.py @@ -122,10 +122,12 @@ def test_carrier_account_update_ups(prod_client): carrier_account = prod_client.carrier_account.create(**params) - prod_client.carrier_account.update(carrier_account.id, account_number="987654321") + updated_carrier_account = prod_client.carrier_account.update(carrier_account.id, account_number="987654321") - assert isinstance(carrier_account, CarrierAccount) - assert str.startswith(carrier_account.id, "ca_") - assert carrier_account.type == "UpsAccount" + assert isinstance(updated_carrier_account, CarrierAccount) + assert str.startswith(updated_carrier_account.id, "ca_") + assert updated_carrier_account.type == "UpsAccount" - prod_client.carrier_account.delete(carrier_account.id) # Delete the carrier account once it's done being tested. + prod_client.carrier_account.delete( + updated_carrier_account.id + ) # Delete the carrier account once it's done being tested.