tcms.testcases.admin module¶
-
class
tcms.testcases.admin.
BugSystemAdmin
(model, admin_site)[source]¶ Bases:
django.contrib.admin.options.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')¶
-
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:
django.forms.models.ModelForm
-
class
Meta
[source]¶ Bases:
object
-
fields
= '__all__'¶
-
model
¶ alias of
tcms.testcases.models.BugSystem
-
-
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>}¶
-
media
¶
-
class
-
class
tcms.testcases.admin.
CategoryAdmin
(model, admin_site)[source]¶ Bases:
django.contrib.admin.options.ModelAdmin
-
list_display
= ('id', 'name', 'product', 'description')¶
-
list_filter
= ('product',)¶
-
media
¶
-
search_fields
= ('name',)¶
-
-
class
tcms.testcases.admin.
IssueTrackerTypeField
(*, choices=(), **kwargs)[source]¶ Bases:
django.forms.fields.ChoiceField
Special choice field which uses the widget above
-
widget
¶ alias of
IssueTrackerTypeSelectWidget
-
-
class
tcms.testcases.admin.
IssueTrackerTypeSelectWidget
(attrs=None, choices=())[source]¶ Bases:
django.forms.widgets.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.
-
choices
¶
-
media
¶
-
-
class
tcms.testcases.admin.
TemplateAdmin
(model, admin_site)[source]¶ Bases:
django.contrib.admin.options.ModelAdmin
-
form
¶ alias of
TemplateAdminForm
-
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:
django.forms.models.ModelForm
-
class
Meta
[source]¶ Bases:
object
-
fields
= '__all__'¶
-
model
¶ alias of
tcms.testcases.models.Template
-
-
base_fields
= {'name': <django.forms.fields.CharField object>, 'text': <django.forms.fields.CharField object>}¶
-
declared_fields
= {'text': <django.forms.fields.CharField object>}¶
-
media
¶
-
class
-
class
tcms.testcases.admin.
TestCaseAdmin
(model, admin_site)[source]¶ Bases:
tcms.core.admin.ObjectPermissionsAdminMixin
,tcms.core.history.ReadOnlyHistoryAdmin
-
media
¶
-
-
class
tcms.testcases.admin.
TestCaseStatusAdmin
(model, admin_site)[source]¶ Bases:
django.contrib.admin.options.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')¶
-
media
¶
-
ordering
= ['-is_confirmed', 'id']¶
-