TT#121955 py-test: add coverage for django templates

https://github.com/nedbat/django_coverage_plugin

Change-Id: I74a5638fea8b2460fc7bd04abe47be210c3f46bb
pull/5/head
Victor Seva 3 years ago
parent 67f093202c
commit df32d4377d

@ -47,6 +47,9 @@ DATABASES = {
}
}
# needed for django-coverage-plugin
TEMPLATES[0]["OPTIONS"]["debug"] = True # noqa
DJANGO_LOG_LEVEL = "DEBUG"
JENKINS_URL = "http://localhost"

@ -1,2 +1,3 @@
-r common.txt
django_coverage_plugin
pytest-django

@ -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-22
ENV REFRESHED_AT 2022-01-23
RUN apt-get update && apt-get install --assume-yes python3 python3-dev \
python3-pytest python3-pytest-pep8 \

@ -22,3 +22,6 @@ omit =
manage.py
repoapi/settings/*
repoapi/wsgi.py
venv_*
relative_files = true
plugins = django_coverage_plugin

Loading…
Cancel
Save