Tests: Pytest, Unittest
Lint: Black
git clone [email protected]:fandredev/django-recipes.git
python -m venv venv
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser
cp .env.example .env
python manage.py runserver
Open browser and put http://127.0.0.1:8000/ in URL browser.
In another tab, open browser and put http://127.0.0.1:8000/admin in URL browser. Log in with your superuser
python manage.py test
pytest
pytest -m 'functional'
coverage run -m pytest
coverage html
After that, open the htmlcov folder and look for the index.html file. Open it in your browser and the project coverage will be there
If you have any feedback, please let us know via [email protected]