Skip to content

Commit 8aa5a35

Browse files
committed
feat: use new fixtures for tests
1 parent f4e235f commit 8aa5a35

File tree

112 files changed

+8550
-7180
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+8550
-7180
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "examples"]
2+
path = examples
3+
url = https://github.com/EasyPost/examples

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,14 @@ install: | venv install-dev
4141
## install-dev - Install dev requirements
4242
install-dev: | venv
4343
$(VIRTUAL_BIN)/pip install -e ."[dev]"
44+
git submodule init
45+
git submodule update
4446

4547
## install-pypy - Install dev requirements for pypy
4648
install-pypy: | venv
4749
$(VIRTUAL_BIN)/pip install -e ."[pypy_dev]"
50+
git submodule init
51+
git submodule update
4852

4953
## isort - Sorts imports throughout the project
5054
isort:

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ EASYPOST_TEST_API_KEY=123... EASYPOST_PROD_API_KEY=123... make coverage
8585

8686
# Run security analysis
8787
make scan
88+
89+
# Update submodules
90+
git submodule init
91+
git submodule update --remote
8892
```
8993

9094
### Testing
@@ -104,9 +108,8 @@ The following are required on every test run:
104108
- `EASYPOST_TEST_API_KEY`
105109
- `EASYPOST_PROD_API_KEY`
106110

107-
The following are required when you need to re-record cassettes for applicable tests (fallback values are used otherwise):
111+
Some tests may require an EasyPost user with a particular set of enabled features such as a `Partner` user when creating referrals. We have attempted to call out these functions in their respective docstrings. The following are required when you need to re-record cassettes for applicable tests:
108112

109113
- `USPS_CARRIER_ACCOUNT_ID` (eg: one-call buying a shipment for non-EasyPost employees)
114+
- `PARTNER_USER_PROD_API_KEY` (eg: creating a referral user)
110115
- `REFERRAL_USER_PROD_API_KEY` (eg: adding a credit card to a referral user)
111-
112-
Some tests may require a user with a particular set of enabled features such as a `Partner` user when creating referrals. We have attempted to call out these functions in their respective docstrings.

examples

Submodule examples added at 20d89b7

tests/cassettes/test_address_all.yaml

+56-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/cassettes/test_address_create.yaml

+21-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/cassettes/test_address_create_and_verify.yaml

-76
This file was deleted.

tests/cassettes/test_address_create_verify.yaml

+16-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)