(e2e) test the pdf export of the impress app

Add a test to check the pdf export of the
impress app.
It intercept the download of the PDF and
read its content.
We can assert that the template is correctly
rendered, and that the pad text is present as
well.
This commit is contained in:
Anthony LC
2024-04-10 20:05:49 +02:00
committed by Anthony LC
parent a772d8fc29
commit 0dc1be4cc7
7 changed files with 79 additions and 6 deletions

View File

@@ -203,9 +203,10 @@ dbshell: ## connect to database shell
docker compose exec app-dev python manage.py dbshell
.PHONY: dbshell
resetdb: FLUSH_ARGS ?=
resetdb: ## flush database and create a superuser "admin"
@echo "$(BOLD)Flush database$(RESET)"
@$(MANAGE) flush
@$(MANAGE) flush $(FLUSH_ARGS)
@${MAKE} superuser
.PHONY: resetdb