Skip to content

Commit b88a812

Browse files
committed
sonarQube
1 parent 2a85b8c commit b88a812

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

lambdas/id_sync/Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1+
TEST_ENV := @PYTHONPATH=src:tests:../shared/src
12

23
test:
3-
@PYTHONPATH=src:tests:../shared/src python -m unittest
4+
$(TEST_ENV) python -m unittest
45

56
coverage-run:
6-
coverage run -m unittest discover -v
7+
$(TEST_ENV) coverage run -m unittest discover -v
78

89
coverage-report:
9-
coverage report -m
10+
$(TEST_ENV) coverage report -m
1011

1112
coverage-html:
12-
coverage html
13+
$(TEST_ENV) coverage html
14+
1315

1416
.PHONY: build package

lambdas/id_sync/src/record_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55

66
def process_record(record, _):
7-
return "hello world"
7+
return f"hello world {record}"

lambdas/id_sync/tests/test_record_processor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ def setUp(self):
99
self.mock_logger_info = self.logger_info_patcher.start()
1010

1111
def test_record_processor_success(self):
12-
response = process_record({"key": "value"})
13-
self.assertEqual(response, "hello world")
12+
test_record = "abc"
13+
response = process_record(test_record, None)
14+
self.assertEqual(response, f"hello world {test_record}")

lambdas/shared/.coverage

52 KB
Binary file not shown.

0 commit comments

Comments
 (0)