#! /bin/bash

# testing overrides
export WL_PG_URI=postgres://joel:@localhost:5432/test
export WL_TIDAL_DB_URI=postgres://joel:@localhost:5432/tidalunit

export PYTHONUNBUFFERED=1

echo "Alembic..."
alembic -c tracker/tidal/alembic/alembic_tidal.ini upgrade head
echo "...done."

py.test "$@"
