scidsg / hushline

Hush Line connects whistleblowers with organizations and people who can help.
https://hushline.app
GNU Affero General Public License v3.0
70 stars 21 forks source link

Create toggle to use either SqlAlchemy native or Alembic to migrate the DB during tests #602

Closed brassy-endomorph closed 6 days ago

brassy-endomorph commented 1 week ago

Is your feature request related to a problem? Please describe.

I want to test that all tests pass in both "dev DB" and "prod DB"

Describe the solution you'd like

Toggle / env var to run all tests either via db.create_all() or alembic upgrade head