Commit Graph

11 Commits

Author SHA1 Message Date
3wc
665e087bd4 Basic testing using flask-testing
This commit makes it possible to override settings during tests, by
switching capsulflask/__init__.py to a "create_app" pattern, and using
`dotenv_values` instead of `load_dotenv`.

The create_app() method returns a Flask app instance, to give
more control over when to initialise the app. This allows setting
environment variables in test files.

Then, use dotenv_values to override loaded .env variables with ones from
the environment, so that tests can set `POSTGRES_CONNECTION_PARAMETERS`
and `SPOKE_MODEL` (possibly others in future..).

Inital tests for the "landing" pages, and login / activation, are
included.
2021-07-17 10:38:04 +02:00
1a02204a63 add gevent so we can have concurrent requests in gunicorn mode 2021-02-16 10:40:31 -06:00
6764c5c97d got httpclient working, spoke heartbeat is working 2021-01-04 13:32:52 -06:00
d8d6124005 forest uncommitted changes on multi-host branch 2020-12-29 17:34:43 -06:00
321a46d77b add ecdsa to the pipfile 2020-05-16 22:11:44 -05:00
e9dcf80f6c btcpay working! added bitpay client code to source tree to fix a bug
fixed a stripe race condition

added account balance warning to account balance page
2020-05-15 18:18:19 -05:00
58f85edcb4 added btcpay pairing instructions to readme 2020-05-14 12:40:25 -05:00
17159ddbf3 add missing dep: python-dotenv 2020-05-13 00:37:07 -05:00
30464ac8e5 metrics are working!!! 2020-05-13 00:28:53 -05:00
08e23cf0d1 stripe payment processor 2020-05-12 12:38:36 -05:00
2e6291d87c migrate to pipenv 2020-05-11 21:25:49 -05:00