Previous requirements:
- Have docker-compose installed with pip.
- Have ports 8000 free.
Steps to install
- Create django local settings
cp faprodjango/config/settings/local_example.py faprodjango/config/settings/local.py
- Create .env file that contains the environments variables
cp env.template .env
- Run project
docker-compose up --build
docker exec -ti faprodjango_web_1 bash
python manage.py shell
from uf.services import CreateValues
CreateValues.create_all_value(CreateValues)
Running pytest
on the main directory runs unit and bdd tests.
pytest
Or individually
pytest uf/tests/test_view.py::{your class} # Only unit tests
coverage
pytest --cov
http://127.0.0.1:8000/swagger/
http://127.0.0.1:8000/redoc/