Preserve task description line breaks and expose run history
Build custom container images / build (map[base_image:php:8-fpm-alpine build_args:PHP_VERSION=8 context:php8-pgsql fingerprint_command:{ apk info -v | LC_ALL=C sort; find /usr/local/lib/php/extensions /usr/local/etc/php/conf.d -type f -exec sha256sum {} + | LC_ALL=C sort; } name:ph… (push) Successful in 38s
Build custom container images / build (map[base_image:postgres:18 build_args:PG_VERSION=18 POSTGIS_VERSION=3 VCHORD_VERSION=0.5.3 context:postgres fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; find /usr/lib/postgresql -type f -exec sha256su… (push) Successful in 46s
Build custom container images / build (map[base_image:python:3 build_args:PYTHON_VERSION=3 context:python-tools fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; pip freeze | LC_ALL=C sort; } name:python-tools oci_labels:org.opencontainers.ima… (push) Successful in 1m10s
Build custom container images / build (map[base_image:python:3.12-slim build_args:PYTHON_VERSION=3.12-slim context:linkki-tiedotus fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; pip freeze | LC_ALL=C sort; } name:linkki-tiedotus oci_labels:… (push) Successful in 25s
Build custom container images / build (map[base_image:python:3.12-slim build_args:PYTHON_VERSION=3.12-slim context:timepoll fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; pip freeze | LC_ALL=C sort; } name:timepoll oci_labels:org.opencontai… (push) Successful in 33s

This commit is contained in:
ajp_anton committed 2026-10-26 22:35:34 +00:00
1 parent 02af6cef4f
commit 0aa67439fd
5 files changed
+36 -1

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import json
from app.web import create_app
from .conftest import write_task
def test_description_line_breaks_are_preserved_and_html_is_escaped(settings):
task = write_task(settings.task_root, "example", "inspect.py", 'print("done")\n')
manifest = {"version": 1, "tasks": {task.name: {
"description": "First line.\nSecond line.\n\n<script>Not HTML</script>",
}}}
(task.parent / "task-inputs.json").write_text(json.dumps(manifest))
client = create_app(settings).test_client()
response = client.get("/")
assert response.status_code == 200
assert b"First line.\nSecond line.\n\n&lt;script&gt;Not HTML&lt;/script&gt;" in response.data
stylesheet = client.get("/static/style.css")
assert b".task-details > p:not(.run-summary) {\n white-space: pre-line;" in stylesheet.data