summaryrefslogtreecommitdiffstats
path: root/Smarker/pytest_template.jinja2
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2022-04-22 16:02:28 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2022-04-22 16:02:28 +0100
commit12ac9bd354c664978523547ffac9bbebf0fcb577 (patch)
treeeb9c3726edfa291d0b6c53cec0f25572946fb887 /Smarker/pytest_template.jinja2
parent5faf5c34d833f8467bce580e1e249f54856042dc (diff)
downloadSmarker-12ac9bd354c664978523547ffac9bbebf0fcb577.tar.gz
Smarker-12ac9bd354c664978523547ffac9bbebf0fcb577.zip
Moved and adapted to move folder, added rendering to pdfs
Diffstat (limited to 'Smarker/pytest_template.jinja2')
-rw-r--r--Smarker/pytest_template.jinja28
1 files changed, 8 insertions, 0 deletions
diff --git a/Smarker/pytest_template.jinja2 b/Smarker/pytest_template.jinja2
new file mode 100644
index 0000000..73c9a40
--- /dev/null
+++ b/Smarker/pytest_template.jinja2
@@ -0,0 +1,8 @@
+{# generating python with python :3 #}
+
+import {{ module }}
+
+{% for i, test_code in enumerate(filestests, 1) %}
+def test_{{ i }}():
+ {{ test_code|indent(4, False) }} {# the code in the config file must be indented with 4 spaces only #}
+{% endfor %} \ No newline at end of file