Skip to content
Permalink
Browse files

Configurable test paths

  • Loading branch information...
Sjors committed Apr 30, 2019
1 parent 267b6f7 commit 9f04497beee9d47edf9144e2b76d6cac568ad97f
Showing with 13 additions and 7 deletions.
  1. +12 −7 DEVELOPMENT.md
  2. +1 −0 tests/tconfig.py
@@ -11,11 +11,18 @@ Clone the repository.
Install Python dependencies:

```sh
pip install flask flask_admin flask_apscheduler flask_login flask_principal flask_fileupload flask_bootstrap flask_migrate flask_ezmail
pip install gunicorn apscheduler sqlalchemy
pip install markdown python-slugify jwt psutil
pip install btcpay
pip install squareconnect
pip3 install flask flask_admin flask_apscheduler flask_login flask_principal flask_fileupload flask_bootstrap flask_migrate flask_ezmail
pip3 install gunicorn apscheduler sqlalchemy
pip3 install markdown python-slugify jwt psutil
pip3 install btcpay
pip3 install squareconnect
```

Configure database and settings path:

```sh
export ISSO_CONFIG_PATH=$PWD/isso.cfg
export COMMENTS_DB_PATH=$PWD/comments.db
```

Create or upgrade the database:
@@ -27,7 +34,5 @@ flask db upgrade
Start the server:

```sh
export ISSO_CONFIG_PATH=$PWD
export COMMENTS_DB_PATH=$PWD
docker_boot.py & gunicorn patron:app
```
@@ -21,6 +21,7 @@ class Config(object):
BLOGGING_ALLOW_FILE_UPLOAD = True
BLOGGING_ESCAPE_MARKDOWN = False
ISSO_CONFIG_PATH = f'/tmp/{os.urandom(16)}'
COMMENTS_DB_PATH = os.environ.get('COMMENTS_DB_PATH_TEST') or '/var/lib/db/comments.db'
PREFERRED_URL_SCHEME = 'https'
SCHEDULER_BASE = datetime.now() + timedelta(minutes=1)
SCHEDULER_HOUR = SCHEDULER_BASE.hour

0 comments on commit 9f04497

Please sign in to comment.
You can’t perform that action at this time.