summaryrefslogtreecommitdiffstats
path: root/pytest_template.jinja2
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2022-01-24 15:30:01 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2022-01-24 15:30:01 +0000
commitddb758a780c74d95d2c6bfc00d50fc7a04de7d34 (patch)
treea54a0f0218ce287257ee6db7c2d8642ef150932d /pytest_template.jinja2
parent3313a936debe04c733b3003858724de17cfcd7de (diff)
downloadSmarker-ddb758a780c74d95d2c6bfc00d50fc7a04de7d34.tar.gz
Smarker-ddb758a780c74d95d2c6bfc00d50fc7a04de7d34.zip
switched to jinja for making test files. made it only test files without errors.
Diffstat (limited to 'pytest_template.jinja2')
-rw-r--r--pytest_template.jinja28
1 files changed, 8 insertions, 0 deletions
diff --git a/pytest_template.jinja2 b/pytest_template.jinja2
new file mode 100644
index 0000000..fad41db
--- /dev/null
+++ b/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, True) }} {# the code in the config file must be indented with 4 spaces only #}
+{% endfor %} \ No newline at end of file