summaryrefslogtreecommitdiffstats
path: root/pytest_template.jinja2
blob: fad41dba62b01a577af085b0053596c62263c754 (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, True) }}     {# the code in the config file must be indented with 4 spaces only #}
{% endfor %}