TT#121955 add validate_templates test

https://django-extensions.readthedocs.io/en/latest/validate_templates.html

* add missing optional requirement
> django_filters/templates/django_filters/rest_framework/crispy_form.html: TemplateSyntaxError 'crispy_forms_tags' is not a registered tag library. Must be one of:
> admin_list
> admin_modify
> admin_urls
> assets
> cache
> debugger_tags
> highlighting
> i18n
> import_export_tags
> indent_text
> jsonify
> l10n
> log
> rest_framework
> static
> syntax_color
> tz
> widont
> CommandError: 1 errors found

Change-Id: I6e425cd9dfde112c64143dae3350dce5839311b7
pull/5/head
Victor Seva 3 years ago
parent a8a3bccf54
commit 69c44c41c1

@ -17,7 +17,7 @@ venv_dev: requirements/dev.txt
pip3 install -r ./requirements/dev.txt | tee install.log
###################################
test:
test: test_templates
RESULTS=$(RESULTS) pytest-3 -ra --junitxml=$(RESULTS)/junit.xml \
--cov=. --cov-report=xml:$(RESULTS)/coverage.xml --pep8
@ -25,6 +25,9 @@ test_pylint:
RESULTS=$(RESULTS) pytest-3 --junitxml=$(RESULTS)/junit.xml \
--pylint --pylint-rcfile=pylint.cfg --pylint-jobs=4
test_templates:
./manage.py validate_templates --settings="repoapi.settings.test"
###################################
deploy: venv_prod

@ -35,6 +35,7 @@ INSTALLED_APPS = [
"django_celery_results",
"django_extensions",
"django_filters",
"crispy_forms",
"jsonify",
"import_export",
"hotfix",

@ -4,6 +4,7 @@ django-appconf
django-assets
django-celery-beat
django-celery-results
django-crispy-forms
django-extensions
django-filter
django-import-export

@ -5,7 +5,7 @@ FROM docker.mgm.sipwise.com/sipwise-bullseye:latest
# is updated with the current date. It will force refresh of all
# of the base images and things like `apt-get update` won't be using
# old cached versions when the Dockerfile is built.
ENV REFRESHED_AT 2022-01-21
ENV REFRESHED_AT 2022-01-22
RUN apt-get update && apt-get install --assume-yes python3 python3-dev \
python3-pytest python3-pytest-pep8 \

Loading…
Cancel
Save