Skip to content

Commit

Permalink
Test instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjors committed May 7, 2019
1 parent 9f04497 commit a0f8ef9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,28 @@ Start the server:
```sh
docker_boot.py & gunicorn patron:app
```
## Run tests

Install Python dependencies:

```sh
pip3 install pytest
```

Configure database path:

```sh
export COMMENTS_DB_PATH_TEST=$PWD/comments-test.db
```

Create or upgrade the test database:


```sh
flask db upgrade
```

Run tests:
``sh
python3 -m pytest
```

0 comments on commit a0f8ef9

Please sign in to comment.