Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 539 Bytes

readme.md

File metadata and controls

48 lines (33 loc) · 539 Bytes

Dextraflix

To run application

On root folder, create a .env file like bellow:

FLASK_APP=main.py
FLASK_ENV=development
PYTHONPATH=$(pwd)

after that, execute the following:

docker-compose up -d
flask run

Testing application

To test application install pytest on your venv.

pip install pytest coverage

to test:

pytest

to code coverage

coverage run -m pytest
coverage report

or

coverage run -m pytest
coverage html

and access: htmlcov/index.html