{%- set cls_name = items[0].cls_name -%}
"""
Tests for class `{{ cls_name }}`
Generated by auto-pytester — DO NOT EDIT MANUALLY.
"""
import pytest

from {{ items[0].module }} import {{ cls_name }}


@pytest.fixture
def {{ cls_name.lower() }}():
    return {{ cls_name }}()

{% for item in items %}
def test_{{ item.qual_name | replace('.', '_') }}_{{ loop.index0 }}(
    {{- cls_name.lower() if cls_name else '' -}}
):
    {% if item.examples.doc -%}
    """
    {{ item.examples.doc }}
    """
    {% endif -%}
    result = {{ cls_name.lower() }}.{{ item.method_name }}(**{{ item.examples.input }})
    assert result == {{ item.examples.expect }}
{% endfor %}