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
a4837aff87
capsul-flask
/
app.py
5 lines
50 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
create_app
(
)
Reference in New Issue
Copy Permalink