from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^new/$', views.new, name='testruns-new'),
    url(r'^(?P<run_id>\d+)/$', views.get, name='testruns-get'),
    url(r'^(?P<run_id>\d+)/clone/$', views.clone, name='testruns-clone'),
    url(r'^(?P<run_id>\d+)/edit/$', views.edit, name='testruns-edit'),

    url(r'^(?P<run_id>\d+)/report/$', views.TestRunReportView.as_view(),
        name='run-report'),

    url(r'^(?P<run_id>\d+)/changestatus/$', views.change_status, name='testruns-change_status'),
    url(r'^(?P<run_id>\d+)/remove_execution/$', views.remove_execution,
        name='testruns-remove_case_run'),

    url(r'^(?P<run_id>\d+)/assigncase/$', views.AddCasesToRunView.as_view(),
        name='add-cases-to-run'),

    url(r'^(?P<run_id>\d+)/cc/$', views.cc, name='testruns-cc'),
    url(r'^(?P<run_id>\d+)/update/$', views.update_case_run_text,
        name='testruns-update_case_run_text'),
    url(r'^update-assignee/$', views.UpdateAssigneeView.as_view()),
    url(r'^case-run-update-status/$', views.UpdateCaseRunStatusView.as_view(),
        name='testruns-update_caserun_status'),

    url(r'^search/$', views.search, name='testruns-search'),
]
