From ff07842dc629e07f081ae578e50c42e4a54bc810 Mon Sep 17 00:00:00 2001 From: jwansek Date: Mon, 31 Jan 2022 15:40:56 +0000 Subject: Added datetime and removed newlines from pytest reports for txt template --- templates/txt.jinja2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates/txt.jinja2') diff --git a/templates/txt.jinja2 b/templates/txt.jinja2 index df2e100..5ab8776 100644 --- a/templates/txt.jinja2 +++ b/templates/txt.jinja2 @@ -38,6 +38,7 @@ {%- endmacro -%} === {{ name }} - Student ID: {{ student_no }} Automatic marking report === +Report generated at {{ get_datetime() }} == Class Tree: == @@ -109,5 +110,5 @@ {% endfor %} {% if out != "stdout" -%} -{{ test_results["pytest_report"] }} +{{ test_results["pytest_report"].replace("\n", "") }} {%- endif -%} \ No newline at end of file -- cgit v1.2.3