Skip to content

Commit

Permalink
Remove unused view. Refs #316
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Jul 29, 2018
1 parent 67563d5 commit 6397796
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
16 changes: 0 additions & 16 deletions tcms/testruns/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
from tcms.core.utils import DataTableResult
from tcms.core.utils.validations import validate_bug_id
from tcms.management.models import Priority, EnvValue, Tag
from tcms.search.forms import RunForm
from tcms.search.query import SmartDjangoQuery
from tcms.testcases.forms import CaseBugForm
from tcms.testcases.models import TestCasePlan, TestCaseStatus, BugSystem
from tcms.testcases.views import get_selected_testcases
Expand Down Expand Up @@ -1182,20 +1180,6 @@ def get_env_value(env_value_id):
return func()


def view_caseruns(request):
"""View that search caseruns."""
queries = request.GET
r_form = RunForm(queries)
r_form.populate(queries)
context = {}
if r_form.is_valid():
runs = SmartDjangoQuery(r_form.cleaned_data, TestRun.__name__).evaluate()
case_runs = get_caseruns_of_runs(runs, queries)
context['test_case_runs'] = case_runs
context['runs'] = runs
return render(request, 'report/caseruns.html', context)


def get_caseruns_of_runs(runs, kwargs=None):
"""
Filtering argument -
Expand Down
1 change: 0 additions & 1 deletion tcms/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
url(r'^run/', include(testruns_urls.run_urls)),
url(r'^runs/', include(testruns_urls.runs_urls)),

url(r'^caseruns/$', testruns_views.view_caseruns),
url(r'^caserun/(?P<case_run_id>\d+)/bug/$', testruns_views.bug, name='testruns-bug'),
url(r'^caserun/comment-many/', ajax.comment_case_runs, name='ajax-comment_case_runs'),
url(r'^caserun/update-bugs-for-many/', ajax.update_bugs_to_caseruns),
Expand Down

0 comments on commit 6397796

Please sign in to comment.