Skip to content

Commit 3970032

Browse files
authored
Merge pull request #337 from EasyPost/init_examples
fix: init examples repo
2 parents 02b474d + 81c2b8b commit 3970032

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@ docs:
3737
flake8:
3838
$(VIRTUAL_BIN)/flake8 $(PROJECT_NAME)/ $(TEST_DIR)/ --append-config examples/style_guides/python/.flake8
3939

40+
## init-examples-submodule - Initialize the examples submodule
41+
init-examples-submodule:
42+
git submodule init
43+
git submodule update
44+
4045
## install - Install the project locally
41-
install: | update-examples-submodule
46+
install: | init-examples-submodule
4247
$(PYTHON_BINARY) -m venv $(VIRTUAL_ENV)
4348
$(VIRTUAL_BIN)/pip install -e ."[dev]"
4449

tests/test_carrier_account.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,12 @@ def test_carrier_account_update_ups(prod_client):
122122

123123
carrier_account = prod_client.carrier_account.create(**params)
124124

125-
prod_client.carrier_account.update(carrier_account.id, account_number="987654321")
125+
updated_carrier_account = prod_client.carrier_account.update(carrier_account.id, account_number="987654321")
126126

127-
assert isinstance(carrier_account, CarrierAccount)
128-
assert str.startswith(carrier_account.id, "ca_")
129-
assert carrier_account.type == "UpsAccount"
127+
assert isinstance(updated_carrier_account, CarrierAccount)
128+
assert str.startswith(updated_carrier_account.id, "ca_")
129+
assert updated_carrier_account.type == "UpsAccount"
130130

131-
prod_client.carrier_account.delete(carrier_account.id) # Delete the carrier account once it's done being tested.
131+
prod_client.carrier_account.delete(
132+
updated_carrier_account.id
133+
) # Delete the carrier account once it's done being tested.

0 commit comments

Comments
 (0)