Skip to content

Commit

Permalink
Fix test_purchase
Browse files Browse the repository at this point in the history
  • Loading branch information
wlcx committed Feb 11, 2024
1 parent 23aab4b commit 7e52407
Show file tree
Hide file tree
Showing 5 changed files with 394 additions and 315 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ Or, you can create an account and simultaneously make it an admin by using `./fl

E-mail sending is disabled in development (but is printed out on the console). You can also log in directly by setting `BYPASS_LOGIN=True` in `config/development.cfg` and then using a URL of the form e.g. `/login/[email protected]`.

### Testing payments

The easiest way to test the payments flow (marginally less easy if you don't have a Stripe account) is to use Stripe test keys and pay by card with Stripe's test cards. To test incoming webhooks you can use a service like ngrok or tailscale funnel to expose your local dev instance to the web (temporarily!).

### Database Migrations

- `./flask db migrate -m 'Migration name'` to generate migration scripts when models have been updated.
Expand Down
Loading

0 comments on commit 7e52407

Please sign in to comment.