tcms.testcases.admin module¶
- class tcms.testcases.admin.BugSystemAdmin(model, admin_site)[source]¶
Bases:
ModelAdmin
- fieldsets = [('', {'fields': ('name',)}), ('External Issue Tracker Integration', {'fields': ('tracker_type', 'base_url', 'api_url', 'api_username', 'api_password'), 'description': '<h1>Warning: read the\n<a href="http://kiwitcms.readthedocs.io/en/latest/admin.html#configure-external-bug-trackers">\nConfigure external bug trackers</a> section before editting the values below!</h1>'}), ('Configuration health check', {'fields': ('hc_bug_url',), 'description': 'Kiwi TCMS will try fetching details for the given bug URL using the integration defined above! Click the `Save and continue` button and watch out for messages at the top of the screen. <strong>WARNING:</strong> in case of failures some issue trackers will fall back to fetching details via the OpenGraph protocol. In that case the result will include field named `from_open_graph`.'})]¶
- form¶
alias of
BugSystemAdminForm
- list_display = ('id', 'name', 'base_url')¶
- property media¶
- search_fields = ('name',)¶
- class tcms.testcases.admin.BugSystemAdminForm(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:
ModelForm
- base_fields = {'api_password': <django.forms.fields.CharField object>, 'api_url': <django.forms.fields.CharField object>, 'api_username': <django.forms.fields.CharField object>, 'base_url': <django.forms.fields.CharField object>, 'hc_bug_url': <django.forms.fields.CharField object>, 'name': <django.forms.fields.CharField object>, 'tracker_type': <tcms.testcases.admin.IssueTrackerTypeField object>}¶
- declared_fields = {'api_password': <django.forms.fields.CharField object>, 'hc_bug_url': <django.forms.fields.CharField object>, 'tracker_type': <tcms.testcases.admin.IssueTrackerTypeField object>}¶
- property media¶
Return all media required to render the widgets on this form.
- class tcms.testcases.admin.CategoryAdmin(model, admin_site)[source]¶
Bases:
ModelAdmin
- list_display = ('id', 'name', 'product', 'description')¶
- list_filter = ('product',)¶
- property media¶
- search_fields = ('name',)¶
- class tcms.testcases.admin.IssueTrackerTypeField(*, choices=(), **kwargs)[source]¶
Bases:
ChoiceField
Special choice field which uses the widget above
- widget¶
alias of
IssueTrackerTypeSelectWidget
- class tcms.testcases.admin.IssueTrackerTypeSelectWidget(attrs=None, choices=())[source]¶
Bases:
Select
A select widget which displays the names of all classes derived from IssueTrackerType. Skip IssueTrackerType because it is doesn’t provide implementations for most of its methods.
- property choices¶
- property media¶
- class tcms.testcases.admin.TemplateAdmin(model, admin_site)[source]¶
Bases:
ModelAdmin
- form¶
alias of
TemplateAdminForm
- property media¶
- class tcms.testcases.admin.TemplateAdminForm(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:
ModelForm
- base_fields = {'name': <django.forms.fields.CharField object>, 'text': <django.forms.fields.CharField object>}¶
- declared_fields = {'text': <django.forms.fields.CharField object>}¶
- property media¶
Return all media required to render the widgets on this form.
- class tcms.testcases.admin.TestCaseAdmin(model, admin_site)[source]¶
Bases:
ObjectPermissionsAdminMixin
,ReadOnlyHistoryAdmin
- property media¶
- class tcms.testcases.admin.TestCaseStatusAdmin(model, admin_site)[source]¶
Bases:
ModelAdmin
- fieldsets = [('', {'fields': ('name', 'description', 'is_confirmed'), 'description': '<h1>For more information about customizing test case statuses see\n <a href="https://kiwitcms.readthedocs.io/en/latest/admin.html#test-case-statuses">\n the documentation</a>!</h1>'})]¶
- list_display = ('id', 'name', 'is_confirmed')¶
- property media¶
- ordering = ['-is_confirmed', 'id']¶