1b617170bf
* Working wrapper for actions * checking permissions for action * Refactor/clean change_confirmation template a bit * Update README * Update README * Adding unit tests for confirm_action decorator * Updated tests/readme * Update after testing upload to test pypi * Clean up and format code Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
25 lines
506 B
Makefile
25 lines
506 B
Makefile
run:
|
|
./tests/manage.py runserver
|
|
|
|
test:
|
|
coverage run --branch -m pytest
|
|
coverage html
|
|
coverage-badge -f -o coverage.svg
|
|
python -m readme_renderer README.md -o /tmp/README.html
|
|
|
|
check-readme:
|
|
python -m readme_renderer README.md -o /tmp/README.html
|
|
|
|
migrate:
|
|
./tests/manage.py makemigrations
|
|
./tests/manage.py migrate
|
|
|
|
shell:
|
|
./tests/manage.py shell
|
|
|
|
package:
|
|
python3 setup.py sdist bdist_wheel
|
|
|
|
upload-testpypi:
|
|
python3 -m twine upload --repository testpypi dist/django_admin_confirm-$(VERSION)*
|