Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 699 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 699 Bytes

Billing API

Requirements

  • Python3.9 & pip
  • MySQL development libraries
  • Virtualenv

Building / Running

virtualenv -p python3.9 env
source env/bin/activate
pip install -r requirements.txt
python run.py

Testing

To run the automated tests, run pytest on any of the test___.py files in billing_server/tests/

For example run pytest test_usage_queries.py

Developing on a Mac

Getting lib files for MySQL is a little tricky for the mysql-python dependency when using a mac.

Download MySQL: http://dev.mysql.com/downloads/mysql/

Add the following to your ~/.profile:

export PATH=/usr/local/mysql/bin:$PATH
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/