Add multi-staged docker build and flake8
Adds multi-staged docker build that reduces final image size 5x. Adds
flake8 checks during docker image build. Changes submit run response
from render to redirect.
Change-Id: Iadd278b4922ee223517b0ea1ffdf75c4a7dac719
diff --git a/testrail_bot/control/celery_tasks/tasks.py b/testrail_bot/control/celery_tasks/tasks.py
index 8566653..4b3d5e9 100644
--- a/testrail_bot/control/celery_tasks/tasks.py
+++ b/testrail_bot/control/celery_tasks/tasks.py
@@ -27,7 +27,6 @@
data = filters.filter_uuid(data)
if test_run.filter_func:
- import rpdb;rpdb.set_trace()
exec(test_run.filter_func)
data = locals()["custom_filter"](data)
return data
diff --git a/testrail_bot/control/forms.py b/testrail_bot/control/forms.py
index 9375f42..1236d6d 100644
--- a/testrail_bot/control/forms.py
+++ b/testrail_bot/control/forms.py
@@ -7,7 +7,7 @@
model = TestRun
fields = "__all__"
labels = {
- "project_name": "Name of the project",
+ "project_name": "Name of the project",
"plan_name": "Name of the Test Plan without date",
"run_name": "Name of the run",
"created_by": "Test Run created by",
diff --git a/testrail_bot/control/views.py b/testrail_bot/control/views.py
index ee582eb..68738c5 100644
--- a/testrail_bot/control/views.py
+++ b/testrail_bot/control/views.py
@@ -74,9 +74,7 @@
report.save()
process_run.delay(run_id, report.id, path)
- return render(
- request, "control/report.html",
- {"report": report.path.read().decode("utf-8"), "report_id": report.id})
+ return redirect("single_report", report.id)
def show_help(request):