tcms.testcases.forms module

class tcms.testcases.forms.BaseCaseSearchForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.forms.Form

base_fields = {'author': <django.forms.fields.CharField object>, 'case_status': <django.forms.models.ModelMultipleChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'component': <django.forms.models.ModelChoiceField object>, 'default_tester': <django.forms.fields.CharField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'items_per_page': <django.forms.fields.ChoiceField object>, 'priority': <django.forms.models.ModelMultipleChoiceField object>, 'summary': <django.forms.fields.CharField object>, 'tag__name__in': <django.forms.fields.CharField object>}
clean_tag__name__in()[source]
declared_fields = {'author': <django.forms.fields.CharField object>, 'case_status': <django.forms.models.ModelMultipleChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'component': <django.forms.models.ModelChoiceField object>, 'default_tester': <django.forms.fields.CharField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'items_per_page': <django.forms.fields.ChoiceField object>, 'priority': <django.forms.models.ModelMultipleChoiceField object>, 'summary': <django.forms.fields.CharField object>, 'tag__name__in': <django.forms.fields.CharField object>}
media
populate(product_id=None)[source]

Limit the query to fit the plan

class tcms.testcases.forms.CaseNotifyForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

fields = '__all__'
model

alias of tcms.testcases.models.TestCaseEmailSettings

base_fields = {'auto_to_case_author': <django.forms.fields.BooleanField object>, 'auto_to_case_run_assignee': <django.forms.fields.BooleanField object>, 'auto_to_case_tester': <django.forms.fields.BooleanField object>, 'auto_to_run_manager': <django.forms.fields.BooleanField object>, 'auto_to_run_tester': <django.forms.fields.BooleanField object>, 'case': <django.forms.models.ModelChoiceField object>, 'cc_list': <tcms.testcases.fields.MultipleEmailField object>, 'notify_on_case_delete': <django.forms.fields.BooleanField object>, 'notify_on_case_update': <django.forms.fields.BooleanField object>}
declared_fields = {'cc_list': <tcms.testcases.fields.MultipleEmailField object>}
media
class tcms.testcases.forms.CloneCaseForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.forms.Form

base_fields = {'case': <django.forms.models.ModelMultipleChoiceField object>, 'plan': <django.forms.models.ModelMultipleChoiceField object>}
declared_fields = {'case': <django.forms.models.ModelMultipleChoiceField object>, 'plan': <django.forms.models.ModelMultipleChoiceField object>}
media
populate(case_ids)[source]
class tcms.testcases.forms.QuickSearchCaseForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.forms.Form

base_fields = {'case_id_set': <django.forms.fields.CharField object>}
clean_case_id_set()[source]
declared_fields = {'case_id_set': <django.forms.fields.CharField object>}
media
class tcms.testcases.forms.SearchCaseForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: tcms.testcases.forms.BaseCaseSearchForm

base_fields = {'author': <django.forms.fields.CharField object>, 'case_status': <django.forms.models.ModelMultipleChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'component': <django.forms.models.ModelChoiceField object>, 'default_tester': <django.forms.fields.CharField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'items_per_page': <django.forms.fields.ChoiceField object>, 'plan': <django.forms.fields.CharField object>, 'priority': <django.forms.models.ModelMultipleChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>, 'search': <django.forms.fields.CharField object>, 'summary': <django.forms.fields.CharField object>, 'tag__name__in': <django.forms.fields.CharField object>}
clean_case_status()[source]
clean_priority()[source]
declared_fields = {'author': <django.forms.fields.CharField object>, 'case_status': <django.forms.models.ModelMultipleChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'component': <django.forms.models.ModelChoiceField object>, 'default_tester': <django.forms.fields.CharField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'items_per_page': <django.forms.fields.ChoiceField object>, 'plan': <django.forms.fields.CharField object>, 'priority': <django.forms.models.ModelMultipleChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>, 'search': <django.forms.fields.CharField object>, 'summary': <django.forms.fields.CharField object>, 'tag__name__in': <django.forms.fields.CharField object>}
media
class tcms.testcases.forms.TestCaseForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

exclude = ['reviewer', 'tag', 'component', 'plan']
model

alias of tcms.testcases.models.TestCase

base_fields = {'arguments': <django.forms.fields.CharField object>, 'author': <django.forms.models.ModelChoiceField object>, 'case_status': <django.forms.models.ModelChoiceField object>, 'category': <django.forms.models.ModelChoiceField object>, 'default_tester': <tcms.core.forms.fields.UserField object>, 'extra_link': <django.forms.fields.CharField object>, 'is_automated': <django.forms.fields.BooleanField object>, 'notes': <django.forms.fields.CharField object>, 'priority': <django.forms.models.ModelChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>, 'requirement': <django.forms.fields.CharField object>, 'script': <django.forms.fields.CharField object>, 'summary': <django.forms.fields.CharField object>, 'text': <django.forms.fields.CharField object>}
declared_fields = {'default_tester': <tcms.core.forms.fields.UserField object>, 'priority': <django.forms.models.ModelChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>, 'text': <django.forms.fields.CharField object>}
media
populate(product_id=None)[source]