tcms.testruns.views module

class tcms.testruns.views.CloneTestRunView(**kwargs)[source]

Bases: tcms.testruns.views.NewTestRunView

dispatch(request, *args, **kwargs)
get(request, pk)[source]
http_method_names = ['get']
class tcms.testruns.views.EditTestRunView(**kwargs)[source]

Bases: django.views.generic.edit.UpdateView

dispatch(request, *args, **kwargs)
form_class

alias of tcms.testruns.forms.NewRunForm

get_context_data(**kwargs)[source]

Insert the form into the context dict.

get_form(form_class=None)[source]

Return an instance of the form to be used in this view.

get_initial()[source]

Return the initial data to use for forms on this view.

model

alias of tcms.testruns.models.TestRun

template_name = 'testruns/mutable.html'
class tcms.testruns.views.GetTestRunView(**kwargs)[source]

Bases: django.views.generic.detail.DetailView

dispatch(request, *args, **kwargs)
get_context_data(**kwargs)[source]

Insert the single object into the context dict.

http_method_names = ['get']
model

alias of tcms.testruns.models.TestRun

template_name = 'testruns/get.html'
class tcms.testruns.views.NewTestRunView(**kwargs)[source]

Bases: django.views.generic.base.View

Display new test run page.

dispatch(request, *args, **kwargs)
get(request, form_initial=None, is_cloning=False)[source]
http_method_names = ['post', 'get']
post(request)[source]
template_name = 'testruns/mutable.html'
class tcms.testruns.views.SearchTestRunView(**kwargs)[source]

Bases: django.views.generic.base.TemplateView

dispatch(request, *args, **kwargs)
get_context_data(**kwargs)[source]
template_name = 'testruns/search.html'
tcms.testruns.views.get_disabled_test_cases_count(test_cases)[source]