tcms.testcases.forms module

class tcms.testcases.forms.BaseCaseForm(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 = {'arguments': <django.forms.fields.CharField object at 0x7ff966c7a978>, 'case_status': <django.forms.models.ModelChoiceField object at 0x7ff966c7acc0>, 'category': <django.forms.models.ModelChoiceField object at 0x7ff966c7afd0>, 'default_tester': <tcms.core.forms.fields.UserField object at 0x7ff966c7a710>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7ff966c7aa20>, 'is_automated': <django.forms.fields.BooleanField object at 0x7ff966c7a860>, 'notes': <django.forms.fields.CharField object at 0x7ff966c83438>, 'priority': <django.forms.models.ModelChoiceField object at 0x7ff966c7ac50>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff9704259e8>, 'requirement': <django.forms.fields.CharField object at 0x7ff966c7a7b8>, 'script': <django.forms.fields.CharField object at 0x7ff966c7a8d0>, 'summary': <django.forms.fields.CharField object at 0x7ff966d31748>, 'text': <django.forms.fields.CharField object at 0x7ff966c835c0>}
declared_fields = {'arguments': <django.forms.fields.CharField object at 0x7ff966c7a978>, 'case_status': <django.forms.models.ModelChoiceField object at 0x7ff966c7acc0>, 'category': <django.forms.models.ModelChoiceField object at 0x7ff966c7afd0>, 'default_tester': <tcms.core.forms.fields.UserField object at 0x7ff966c7a710>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7ff966c7aa20>, 'is_automated': <django.forms.fields.BooleanField object at 0x7ff966c7a860>, 'notes': <django.forms.fields.CharField object at 0x7ff966c83438>, 'priority': <django.forms.models.ModelChoiceField object at 0x7ff966c7ac50>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff9704259e8>, 'requirement': <django.forms.fields.CharField object at 0x7ff966c7a7b8>, 'script': <django.forms.fields.CharField object at 0x7ff966c7a8d0>, 'summary': <django.forms.fields.CharField object at 0x7ff966d31748>, 'text': <django.forms.fields.CharField object at 0x7ff966c835c0>}
media
populate(product_id=None)[source]
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 at 0x7ff966c9a080>, 'bug_id': <tcms.testcases.forms.BugField object at 0x7ff966c9a978>, 'case_status': <django.forms.models.ModelMultipleChoiceField object at 0x7ff966c9a630>, 'category': <django.forms.models.ModelChoiceField object at 0x7ff966c9a278>, 'component': <django.forms.models.ModelChoiceField object at 0x7ff966c9a4e0>, 'default_tester': <django.forms.fields.CharField object at 0x7ff966c9a128>, 'is_automated': <django.forms.fields.BooleanField object at 0x7ff966c9aa90>, 'items_per_page': <django.forms.fields.ChoiceField object at 0x7ff966c9ab00>, 'priority': <django.forms.models.ModelMultipleChoiceField object at 0x7ff966c9a320>, 'summary': <django.forms.fields.CharField object at 0x7ff966c83e80>, 'tag__name__in': <django.forms.fields.CharField object at 0x7ff966c9a1d0>}
clean_bug_id()[source]
clean_tag__name__in()[source]
declared_fields = {'author': <django.forms.fields.CharField object at 0x7ff966c9a080>, 'bug_id': <tcms.testcases.forms.BugField object at 0x7ff966c9a978>, 'case_status': <django.forms.models.ModelMultipleChoiceField object at 0x7ff966c9a630>, 'category': <django.forms.models.ModelChoiceField object at 0x7ff966c9a278>, 'component': <django.forms.models.ModelChoiceField object at 0x7ff966c9a4e0>, 'default_tester': <django.forms.fields.CharField object at 0x7ff966c9a128>, 'is_automated': <django.forms.fields.BooleanField object at 0x7ff966c9aa90>, 'items_per_page': <django.forms.fields.ChoiceField object at 0x7ff966c9ab00>, 'priority': <django.forms.models.ModelMultipleChoiceField object at 0x7ff966c9a320>, 'summary': <django.forms.fields.CharField object at 0x7ff966c83e80>, 'tag__name__in': <django.forms.fields.CharField object at 0x7ff966c9a1d0>}
media
populate(product_id=None)[source]

Limit the query to fit the plan

class tcms.testcases.forms.BugField(*, max_length=None, min_length=None, strip=True, empty_value='', **kwargs)[source]

Bases: django.forms.fields.CharField

Customizing forms CharFiled validation. Bug ID seperated using a delimiter such as comma.

validate(value)[source]
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, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.forms.Form

base_fields = {'assignees_of_case_runs': <django.forms.fields.BooleanField object at 0x7ff966c837f0>, 'author': <django.forms.fields.BooleanField object at 0x7ff966c83550>, 'cc_list': <tcms.testcases.fields.MultipleEmailField object at 0x7ff966c83978>, 'default_tester_of_case': <django.forms.fields.BooleanField object at 0x7ff966c836a0>, 'default_testers_of_runs': <django.forms.fields.BooleanField object at 0x7ff966c83780>, 'managers_of_runs': <django.forms.fields.BooleanField object at 0x7ff966c83710>, 'notify_on_case_delete': <django.forms.fields.BooleanField object at 0x7ff966c838d0>, 'notify_on_case_update': <django.forms.fields.BooleanField object at 0x7ff966c83860>}
declared_fields = {'assignees_of_case_runs': <django.forms.fields.BooleanField object at 0x7ff966c837f0>, 'author': <django.forms.fields.BooleanField object at 0x7ff966c83550>, 'cc_list': <tcms.testcases.fields.MultipleEmailField object at 0x7ff966c83978>, 'default_tester_of_case': <django.forms.fields.BooleanField object at 0x7ff966c836a0>, 'default_testers_of_runs': <django.forms.fields.BooleanField object at 0x7ff966c83780>, 'managers_of_runs': <django.forms.fields.BooleanField object at 0x7ff966c83710>, 'notify_on_case_delete': <django.forms.fields.BooleanField object at 0x7ff966c838d0>, 'notify_on_case_update': <django.forms.fields.BooleanField object at 0x7ff966c83860>}
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 at 0x7ff966ca10f0>, 'copy_case': <django.forms.fields.BooleanField object at 0x7ff966ca1048>, 'copy_component': <django.forms.fields.BooleanField object at 0x7ff966ca14a8>, 'maintain_case_orignal_author': <django.forms.fields.BooleanField object at 0x7ff966ca1278>, 'maintain_case_orignal_default_tester': <django.forms.fields.BooleanField object at 0x7ff966ca1438>, 'plan': <django.forms.models.ModelMultipleChoiceField object at 0x7ff966ca12e8>}
declared_fields = {'case': <django.forms.models.ModelMultipleChoiceField object at 0x7ff966ca10f0>, 'copy_case': <django.forms.fields.BooleanField object at 0x7ff966ca1048>, 'copy_component': <django.forms.fields.BooleanField object at 0x7ff966ca14a8>, 'maintain_case_orignal_author': <django.forms.fields.BooleanField object at 0x7ff966ca1278>, 'maintain_case_orignal_default_tester': <django.forms.fields.BooleanField object at 0x7ff966ca1438>, 'plan': <django.forms.models.ModelMultipleChoiceField object at 0x7ff966ca12e8>}
media
populate(case_ids)[source]
class tcms.testcases.forms.NewCaseForm(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.BaseCaseForm

base_fields = {'arguments': <django.forms.fields.CharField object at 0x7ff966c7a978>, 'case_status': <django.forms.models.ModelChoiceField object at 0x7ff966c7acc0>, 'category': <django.forms.models.ModelChoiceField object at 0x7ff966c7afd0>, 'default_tester': <tcms.core.forms.fields.UserField object at 0x7ff966c7a710>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7ff966c7aa20>, 'is_automated': <django.forms.fields.BooleanField object at 0x7ff966c7a860>, 'notes': <django.forms.fields.CharField object at 0x7ff966c83438>, 'priority': <django.forms.models.ModelChoiceField object at 0x7ff966c7ac50>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff9704259e8>, 'requirement': <django.forms.fields.CharField object at 0x7ff966c7a7b8>, 'script': <django.forms.fields.CharField object at 0x7ff966c7a8d0>, 'summary': <django.forms.fields.CharField object at 0x7ff966d31748>, 'text': <django.forms.fields.CharField object at 0x7ff966c835c0>}
clean_case_status()[source]
declared_fields = {'arguments': <django.forms.fields.CharField object at 0x7ff966c7a978>, 'case_status': <django.forms.models.ModelChoiceField object at 0x7ff966c7acc0>, 'category': <django.forms.models.ModelChoiceField object at 0x7ff966c7afd0>, 'default_tester': <tcms.core.forms.fields.UserField object at 0x7ff966c7a710>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7ff966c7aa20>, 'is_automated': <django.forms.fields.BooleanField object at 0x7ff966c7a860>, 'notes': <django.forms.fields.CharField object at 0x7ff966c83438>, 'priority': <django.forms.models.ModelChoiceField object at 0x7ff966c7ac50>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff9704259e8>, 'requirement': <django.forms.fields.CharField object at 0x7ff966c7a7b8>, 'script': <django.forms.fields.CharField object at 0x7ff966c7a8d0>, 'summary': <django.forms.fields.CharField object at 0x7ff966d31748>, 'text': <django.forms.fields.CharField object at 0x7ff966c835c0>}
media
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 at 0x7ff966c9acc0>}
clean_case_id_set()[source]
declared_fields = {'case_id_set': <django.forms.fields.CharField object at 0x7ff966c9acc0>}
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 at 0x7ff966c9a080>, 'bug_id': <tcms.testcases.forms.BugField object at 0x7ff966c9a978>, 'case_status': <django.forms.models.ModelMultipleChoiceField object at 0x7ff966c9a630>, 'category': <django.forms.models.ModelChoiceField object at 0x7ff966c9a278>, 'component': <django.forms.models.ModelChoiceField object at 0x7ff966c9a4e0>, 'default_tester': <django.forms.fields.CharField object at 0x7ff966c9a128>, 'is_automated': <django.forms.fields.BooleanField object at 0x7ff966c9aa90>, 'items_per_page': <django.forms.fields.ChoiceField object at 0x7ff966c9ab00>, 'plan': <django.forms.fields.CharField object at 0x7ff966c9ac18>, 'priority': <django.forms.models.ModelMultipleChoiceField object at 0x7ff966c9a320>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff966c9ad68>, 'search': <django.forms.fields.CharField object at 0x7ff966c9ab70>, 'summary': <django.forms.fields.CharField object at 0x7ff966c83e80>, 'tag__name__in': <django.forms.fields.CharField object at 0x7ff966c9a1d0>}
clean_case_status()[source]
clean_priority()[source]
declared_fields = {'author': <django.forms.fields.CharField object at 0x7ff966c9a080>, 'bug_id': <tcms.testcases.forms.BugField object at 0x7ff966c9a978>, 'case_status': <django.forms.models.ModelMultipleChoiceField object at 0x7ff966c9a630>, 'category': <django.forms.models.ModelChoiceField object at 0x7ff966c9a278>, 'component': <django.forms.models.ModelChoiceField object at 0x7ff966c9a4e0>, 'default_tester': <django.forms.fields.CharField object at 0x7ff966c9a128>, 'is_automated': <django.forms.fields.BooleanField object at 0x7ff966c9aa90>, 'items_per_page': <django.forms.fields.ChoiceField object at 0x7ff966c9ab00>, 'plan': <django.forms.fields.CharField object at 0x7ff966c9ac18>, 'priority': <django.forms.models.ModelMultipleChoiceField object at 0x7ff966c9a320>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff966c9ad68>, 'search': <django.forms.fields.CharField object at 0x7ff966c9ab70>, 'summary': <django.forms.fields.CharField object at 0x7ff966c83e80>, 'tag__name__in': <django.forms.fields.CharField object at 0x7ff966c9a1d0>}
media
class tcms.testcases.forms.XMLRPCBaseCaseForm(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.BaseCaseForm

base_fields = {'arguments': <django.forms.fields.CharField object at 0x7ff966c7a978>, 'case_status': <django.forms.models.ModelChoiceField object at 0x7ff966c7acc0>, 'category': <django.forms.models.ModelChoiceField object at 0x7ff966c7afd0>, 'default_tester': <tcms.core.forms.fields.UserField object at 0x7ff966c7a710>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7ff966c7aa20>, 'is_automated': <django.forms.fields.BooleanField object at 0x7ff966c7a860>, 'notes': <django.forms.fields.CharField object at 0x7ff966c83438>, 'priority': <django.forms.models.ModelChoiceField object at 0x7ff966c7ac50>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff9704259e8>, 'requirement': <django.forms.fields.CharField object at 0x7ff966c7a7b8>, 'script': <django.forms.fields.CharField object at 0x7ff966c7a8d0>, 'summary': <django.forms.fields.CharField object at 0x7ff966d31748>, 'text': <django.forms.fields.CharField object at 0x7ff966c835c0>}
declared_fields = {'arguments': <django.forms.fields.CharField object at 0x7ff966c7a978>, 'case_status': <django.forms.models.ModelChoiceField object at 0x7ff966c7acc0>, 'category': <django.forms.models.ModelChoiceField object at 0x7ff966c7afd0>, 'default_tester': <tcms.core.forms.fields.UserField object at 0x7ff966c7a710>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7ff966c7aa20>, 'is_automated': <django.forms.fields.BooleanField object at 0x7ff966c7a860>, 'notes': <django.forms.fields.CharField object at 0x7ff966c83438>, 'priority': <django.forms.models.ModelChoiceField object at 0x7ff966c7ac50>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff9704259e8>, 'requirement': <django.forms.fields.CharField object at 0x7ff966c7a7b8>, 'script': <django.forms.fields.CharField object at 0x7ff966c7a8d0>, 'summary': <django.forms.fields.CharField object at 0x7ff966d31748>, 'text': <django.forms.fields.CharField object at 0x7ff966c835c0>}
media
class tcms.testcases.forms.XMLRPCNewCaseForm(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.XMLRPCBaseCaseForm

base_fields = {'arguments': <django.forms.fields.CharField object at 0x7ff966c7a978>, 'case_status': <django.forms.models.ModelChoiceField object at 0x7ff966c7acc0>, 'category': <django.forms.models.ModelChoiceField object at 0x7ff966c7afd0>, 'default_tester': <tcms.core.forms.fields.UserField object at 0x7ff966c7a710>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7ff966c7aa20>, 'is_automated': <django.forms.fields.BooleanField object at 0x7ff966c7a860>, 'notes': <django.forms.fields.CharField object at 0x7ff966c83438>, 'priority': <django.forms.models.ModelChoiceField object at 0x7ff966c7ac50>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff9704259e8>, 'requirement': <django.forms.fields.CharField object at 0x7ff966c7a7b8>, 'script': <django.forms.fields.CharField object at 0x7ff966c7a8d0>, 'summary': <django.forms.fields.CharField object at 0x7ff966d31748>, 'text': <django.forms.fields.CharField object at 0x7ff966c835c0>}
clean_case_status()[source]
declared_fields = {'arguments': <django.forms.fields.CharField object at 0x7ff966c7a978>, 'case_status': <django.forms.models.ModelChoiceField object at 0x7ff966c7acc0>, 'category': <django.forms.models.ModelChoiceField object at 0x7ff966c7afd0>, 'default_tester': <tcms.core.forms.fields.UserField object at 0x7ff966c7a710>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7ff966c7aa20>, 'is_automated': <django.forms.fields.BooleanField object at 0x7ff966c7a860>, 'notes': <django.forms.fields.CharField object at 0x7ff966c83438>, 'priority': <django.forms.models.ModelChoiceField object at 0x7ff966c7ac50>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff9704259e8>, 'requirement': <django.forms.fields.CharField object at 0x7ff966c7a7b8>, 'script': <django.forms.fields.CharField object at 0x7ff966c7a8d0>, 'summary': <django.forms.fields.CharField object at 0x7ff966d31748>, 'text': <django.forms.fields.CharField object at 0x7ff966c835c0>}
media
class tcms.testcases.forms.XMLRPCUpdateCaseForm(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.XMLRPCBaseCaseForm

base_fields = {'arguments': <django.forms.fields.CharField object at 0x7ff966c7a978>, 'case_status': <django.forms.models.ModelChoiceField object at 0x7ff966c7acc0>, 'category': <django.forms.models.ModelChoiceField object at 0x7ff966c83b00>, 'default_tester': <tcms.core.forms.fields.UserField object at 0x7ff966c7a710>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7ff966c7aa20>, 'is_automated': <django.forms.fields.BooleanField object at 0x7ff966c7a860>, 'notes': <django.forms.fields.CharField object at 0x7ff966c83438>, 'priority': <django.forms.models.ModelChoiceField object at 0x7ff966c83ba8>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff966c83d30>, 'requirement': <django.forms.fields.CharField object at 0x7ff966c7a7b8>, 'script': <django.forms.fields.CharField object at 0x7ff966c7a8d0>, 'summary': <django.forms.fields.CharField object at 0x7ff966c83a58>, 'text': <django.forms.fields.CharField object at 0x7ff966c835c0>}
declared_fields = {'arguments': <django.forms.fields.CharField object at 0x7ff966c7a978>, 'case_status': <django.forms.models.ModelChoiceField object at 0x7ff966c7acc0>, 'category': <django.forms.models.ModelChoiceField object at 0x7ff966c83b00>, 'default_tester': <tcms.core.forms.fields.UserField object at 0x7ff966c7a710>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7ff966c7aa20>, 'is_automated': <django.forms.fields.BooleanField object at 0x7ff966c7a860>, 'notes': <django.forms.fields.CharField object at 0x7ff966c83438>, 'priority': <django.forms.models.ModelChoiceField object at 0x7ff966c83ba8>, 'product': <django.forms.models.ModelChoiceField object at 0x7ff966c83d30>, 'requirement': <django.forms.fields.CharField object at 0x7ff966c7a7b8>, 'script': <django.forms.fields.CharField object at 0x7ff966c7a8d0>, 'summary': <django.forms.fields.CharField object at 0x7ff966c83a58>, 'text': <django.forms.fields.CharField object at 0x7ff966c835c0>}
media