summaryrefslogtreecommitdiffstats
path: root/Smarker/pytest_template.jinja2
blob: 73c9a40c2b8a4fbfcf13f5da0caba3743e8dcfc3 (plain)
1
2
3
4
5
6
7
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 %}