Skip to content

Commit 35e8cbc

Browse files
committed
Merge branch 'master' into updates-sp24
2 parents 72db5d2 + 293120a commit 35e8cbc

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
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

lab/setup.cfg

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool:pytest]
22
minversion = 6.0
3-
addopts = --pspec --cov=. --disable-warnings
3+
addopts = --pspec --cov=. --cov-fail-under=95 --disable-warnings
44
testpaths =
55
tests
66
integration
@@ -10,3 +10,11 @@ show_missing = True
1010

1111
[pylint.'MESSAGES CONTROL']
1212
disable=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

lab/test_counter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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.

setup.cfg

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
# setup configuration for tools
22
[tool:pytest]
33
minversion = 6.0
4-
addopts = --pspec --cov=service --disable-warnings
4+
addopts = --pspec --cov=service --cov-fail-under=95 --disable-warnings
55
testpaths =
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]
1018
max-line-length = 127
1119
per-file-ignores =

0 commit comments

Comments
 (0)