File tree Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 6060 - name : Run unit tests with green
6161 run : |
6262 export FLASK_APP=service:app
63- pytest --disable-warnings
63+ pytest --pspec --cov=service --cov-fail-under=95 -- disable-warnings
6464 env :
6565 DATABASE_URI : " postgresql+psycopg://postgres:pgs3cr3t@postgres:5432/testdb"
6666
Original file line number Diff line number Diff line change 11[tool:pytest]
22minversion = 6.0
3- addopts = --pspec --cov =. --disable-warnings
3+ addopts = --pspec --cov =. --cov-fail-under =95 -- disable-warnings
44testpaths =
55 tests
66 integration
@@ -10,3 +10,11 @@ show_missing = True
1010
1111[pylint.'MESSAGES CONTROL']
1212disable =E1101
13+
14+ [green]
15+ verbose =3
16+ processes =1
17+ run-coverage =1
18+ termcolor =1
19+ # minimum-coverage=95
20+ # junit-report=./unittests.xml
Original file line number Diff line number Diff line change 55- The API must be RESTful.
66- The endpoint must be called `/counters`.
77- When creating a counter, you must specify the name in the path.
8- - Duplicate names must return a conflict error code.
8+ - Duplicate names must return a 409 conflict error code.
99- The service must be able to update a counter by name.
1010- The service must be able to get a counter's current value.
1111- The service must be able to delete a counter.
Original file line number Diff line number Diff line change 11# setup configuration for tools
22[tool:pytest]
33minversion = 6.0
4- addopts = --pspec --cov =service --disable-warnings
4+ addopts = --pspec --cov =service --cov-fail-under =95 -- disable-warnings
55testpaths =
66 tests
77 integration
88
9+ [green]
10+ verbose =3
11+ processes =1
12+ run-coverage =1
13+ termcolor =1
14+ minimum-coverage =95
15+ # junit-report=./unittests.xml
16+
917[flake8]
1018max-line-length = 127
1119per-file-ignores =
You can’t perform that action at this time.
0 commit comments