Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions tekton/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 2 additions & 3 deletions tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -191,4 +191,3 @@ def test_ACAO_header(self):
}
for key, value in header.items():
self.assertEqual(resp.headers.get(key), value)