From ddb758a780c74d95d2c6bfc00d50fc7a04de7d34 Mon Sep 17 00:00:00 2001 From: jwansek Date: Mon, 24 Jan 2022 15:30:01 +0000 Subject: switched to jinja for making test files. made it only test files without errors. --- pytest_template.jinja2 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 pytest_template.jinja2 (limited to 'pytest_template.jinja2') 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 -- cgit v1.2.3