# -*- coding: utf-8 -*-
# @Time : 2022/7/20 10:34
# @Author : wangyinghao
# @File : api_scenarios_case.py
# @Software: PyCharm

from django import forms


class ApiScenariosCaseForm(forms.Form):
    api_scenarios_case_name = forms.CharField(max_length=50,
                                              min_length=2,
                                              required=True,
                                              error_messages={'required': "Api场景测试名称不能为空"})

    api_management_id = forms.CharField(required=False)

    api_scenarios_case_describe = forms.CharField(max_length=2000,
                                                  min_length=0,
                                                  required=False,
                                                  error_messages={'required': "Api场景描述超过2000字符"})
