diff --git a/tekton/pipeline.yaml b/tekton/pipeline.yaml index 1c238b3..1bf0cf5 100644 --- a/tekton/pipeline.yaml +++ b/tekton/pipeline.yaml @@ -36,3 +36,16 @@ 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 \ No newline at end of file diff --git a/tests/test_routes.py b/tests/test_routes.py index ec2c408..634967f 100644 --- a/tests/test_routes.py +++ b/tests/test_routes.py @@ -3,7 +3,7 @@ Test cases can be run with the following: nosetests -v --with-spec --spec-color - coverage report -m + coverage report -m """ import os import logging @@ -135,7 +135,7 @@ def test_read_an_account(self): self.assertEqual(resp.status_code, status.HTTP_200_OK) data = resp.get_json() self.assertEqual(data["name"], account.name) - + def test_get_account_not_found(self): """It should not Read an Account that is not found""" resp = self.client.get(f"{BASE_URL}/0") @@ -191,4 +191,3 @@ def test_ACAO_header(self): } for key, value in header.items(): self.assertEqual(resp.headers.get(key), value) - \ No newline at end of file