tcms.testruns.views module

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

Bases: NewTestRunView

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

Bases: UpdateView

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

alias of 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 TestRun

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

Bases: 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 Environment

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

Bases: 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 TestRun

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

Bases: NewTestRunView

Handles the permalink /runs/from-plan/123/

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

Bases: 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: 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]