From 4b7dfa8afd679ad1218f01b58711965b22a8073a Mon Sep 17 00:00:00 2001 From: H4CK3R-01 Date: Wed, 30 Mar 2022 10:51:38 +0200 Subject: [PATCH] Update README.md --- api/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/README.md b/api/README.md index e771473..e9daaa2 100644 --- a/api/README.md +++ b/api/README.md @@ -10,6 +10,16 @@ Aktienbot API 2. Or set variables using `export` or `set` commands. (Windows `set`, Linux `export`) 4. Run api `python api/app.py` + +## Testing +1. Create virtual environment `python -m venv venv env/Scripts/activate` +2. Install requirements `pip install -r api/requirements.txt` +3. Set environment variables (see list below) + 1. Use `.env`-file in `api` directory like `.env.example` + 2. Or set variables using `export` or `set` commands. (Windows `set`, Linux `export`) +4. Change directory: `cd api/` +5. Run tests: `python -m pytest -v --cov-report term-missing --cov=app` + ## Environment variables ``` # Flask secret key