3wc
13b2c05476
gitignore unittest output file
2021-08-16 02:07:36 +02:00
3wc
2b33573890
Fix capsul create tests, post-test cleanup, tidy merge
2021-08-16 02:07:36 +02:00
3wc
d833b3df19
Disable VM creation check for the moment
2021-08-16 02:07:36 +02:00
3wc
46a40261bb
Add SSH key tests
2021-08-16 02:07:36 +02:00
3wc
b108d4c04e
Initial console tests
...
NB capsul create isn't working properly, see #83
2021-08-16 02:07:36 +02:00
3wc
6bd02a660e
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-08-16 02:07:34 +02:00
3wc
c4ba5ea197
Merge branch 'master' of ssh://git.autonomic.zone:2222/3wordchant/capsul-flask
2021-07-21 23:46:37 +02:00
3wc
33f4551cf4
Merge branch 'docs-reshuffle'
2021-07-21 23:44:42 +02:00
3wc
0fa7fb28b5
Split README up into separate files, plus:
...
* forest's ReadMe docs changes
* add Configuration-type-stuff that lives in the database
2021-07-21 23:43:44 +02:00
3wc
bf7487f4f0
Don't load /btcpay if BTCPAY_PRIVATE_KEY un-set
2021-07-21 23:43:44 +02:00
3wc
8b0ce0ba71
Hide the BTCPay link if BTCPAY_PRIVATE_KEY un-set
2021-07-21 23:43:44 +02:00
3wc
bca570882e
Add load_config_vars context processor..
...
..to allow accessing config variables in the templates.
This removes the need for adding config variables manually to template
contexts.
2021-07-21 23:43:44 +02:00
3wc
827ca4a50b
Auto-generate the pricing table from the database
2021-07-21 23:43:44 +02:00
3wc
8f2becb9ee
Fix SyntaxWarning on is not ""
...
`capsulflask/__init__.py:143: SyntaxWarning: "is not" with a literal. Did you mean "!="?`
2021-07-21 21:51:50 +02:00
3wc
7923f3a99f
Auto-generate the pricing table from the database
2021-07-21 12:19:28 +02:00
3wc
7ed847251f
Don't load /btcpay if BTCPAY_PRIVATE_KEY un-set
2021-07-21 00:22:58 +02:00
3wc
e3a4776a5d
Hide the BTCPay link if BTCPAY_PRIVATE_KEY un-set
2021-07-21 00:20:38 +02:00
3wc
357d99cb91
Add load_config_vars context processor..
...
..to allow accessing config variables in the templates.
This removes the need for adding config variables manually to template
contexts.
2021-07-21 00:19:38 +02:00