This website requires JavaScript.
Explore
Help
Sign In
3wordchant
/
capsul-flask
Watch
1
Star
0
Fork
1
You've already forked capsul-flask
Code
Issues
Pull Requests
1
Releases
Wiki
Activity
aa67a1e1b2
capsul-flask
/
app.py
5 lines
56 B
Python
Raw
Normal View
History
Unescape
Escape
trying to fix logging
2020-05-16 04:19:01 +00:00
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-16 15:51:06 +00:00
from
capsulflask
import
create_app
ensure that app is defined in app.py to fix login link logging issues. also shuffled some things around for cleanliness
2021-07-19 17:07:02 +00:00
app
=
create_app
(
)
Reference in New Issue
Copy Permalink