Skip to content

Commit e54db3c

Browse files
committed
test: fix unit tests
1 parent 01476ba commit e54db3c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_sw360_health.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_get_health_status(self):
5050

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

tests/test_sw360_projects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def test_get_projects_by_tag(self):
409409

410410
responses.add(
411411
responses.GET,
412-
url=self.MYURL + "resource/api/projects?tag=SI BP",
412+
url=self.MYURL + "resource/api/projects?tag=SI BP&luceneSearch=true",
413413
body='{"_embedded": {"sw360:projects": [{"name": "My Testproject", "externalIds": {"com.siemens.code.project.id": "13171"}}]}}', # noqa
414414
status=200,
415415
content_type="application/json",
@@ -427,7 +427,7 @@ def test_get_projects_by_tag_no_result(self):
427427

428428
responses.add(
429429
responses.GET,
430-
url=self.MYURL + "resource/api/projects?tag=SI",
430+
url=self.MYURL + "resource/api/projects?tag=SI&luceneSearch=true",
431431
body='{}',
432432
status=200,
433433
content_type="application/json",

0 commit comments

Comments
 (0)