diff --git a/tekton/pipeline.yaml b/tekton/pipeline.yaml index 1c238b3..97c4b18 100644 --- a/tekton/pipeline.yaml +++ b/tekton/pipeline.yaml @@ -36,3 +36,17 @@ spec: value: $(params.branch) runAfter: - init + + - name: lint + workspaces: + - name: source + workspace: pipeline-workspace + taskRef: + name: flake8 + params: + - name: image + value: "python:3.9-slim" + - name: args + value: ["--count","--max-complexity=10","--max-line-length=127","--statistics"] + runAfter: + - clone diff --git a/tests/test_routes.py b/tests/test_routes.py index 36eeb72..6cc0564 100644 --- a/tests/test_routes.py +++ b/tests/test_routes.py @@ -187,7 +187,7 @@ def test_security_headers(self): } for key, value in headers.items(): self.assertEqual(response.headers.get(key), value) - + def test_cors_security(self): """It should return a CORS header""" response = self.client.get('/', environ_overrides=HTTPS_ENVIRON)