Skip to content

Commit 117a412

Browse files
committed
test: fix unit test for get_health_status
1 parent fc25552 commit 117a412

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

CreateCoverageReport.ps1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# -----------------------------------------
2+
# Run tests and create code coverage report
3+
# -----------------------------------------
4+
5+
# 2021-12-20, T. Graf
6+
7+
poetry run coverage run -m pytest
8+
poetry run coverage report -m --omit "*/site-packages/*.py"
9+
poetry run coverage html --omit "*/site-packages/*.py"
10+
11+
12+
# -----------------------------------
13+
# -----------------------------------

tests/test_sw360_health.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -------------------------------------------------------------------------------
2-
# (c) 2020 Siemens AG
2+
# (c) 2020-2022 Siemens AG
33
# All Rights Reserved.
44
# Author: thomas.graf@siemens.com
55
#
@@ -50,7 +50,7 @@ def test_get_health_status(self):
5050

5151
responses.add(
5252
method=responses.GET,
53-
url=self.MYURL + "resource/actuator/health/",
53+
url=self.MYURL + "resource/health/",
5454
body='{"status": "UP"}',
5555
status=200,
5656
content_type="application/json",

0 commit comments

Comments
 (0)