Skip to content

Latest commit

 

History

History
69 lines (47 loc) · 1.24 KB

File metadata and controls

69 lines (47 loc) · 1.24 KB

Setting up the environment

  1. Install pyenv
  2. Setup virtual environment
# install necessary Python version
pyenv install 3.13.2

# create a virtual environment
pyenv virtualenv 3.13.2 v3.13
pyenv activate v3.13
  1. Upgrade pip
pip install -U pip
  1. Install pre-commit
pip install -U pre-commit
pre-commit install
  1. Install the library:
pip install -e .

Testing

Before submitting a change, make sure the following commands run without errors from the root folder of the repository:

python -m unittest discover

Integration testing app

For testing the app with real calls it is possible to run the integration testing app, it makes calls to almost all Sift public API endpoints to make sure the library integrates well. At the moment, the app is run on every merge to master

How to run it locally

  1. Add env variable API_KEY with the valid Api Key associated from the account
export API_KEY="api_key"
  1. Add env variable ACCOUNT_ID with the valid account id
export ACCOUNT_ID="account_id"
  1. Run the following under the project root folder
# run the app
python test_integration_app/main.py