summaryrefslogtreecommitdiffstats
path: root/templates/txt.jinja2
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2022-01-31 15:40:56 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2022-01-31 15:40:56 +0000
commitff07842dc629e07f081ae578e50c42e4a54bc810 (patch)
treedfbc9f8d57bc850ea6af906163f6ad4c27878a54 /templates/txt.jinja2
parent1f47944208cb9ddabce1b99a410a4c87db4a2b6a (diff)
downloadSmarker-ff07842dc629e07f081ae578e50c42e4a54bc810.tar.gz
Smarker-ff07842dc629e07f081ae578e50c42e4a54bc810.zip
Added datetime and removed newlines from pytest reports for txt template
Diffstat (limited to 'templates/txt.jinja2')
-rw-r--r--templates/txt.jinja23
1 files changed, 2 insertions, 1 deletions
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