Skip to content

Commit faf65f9

Browse files
committed
test
1 parent a485a00 commit faf65f9

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,14 @@ jobs:
6161

6262
- name: Run unittest with coverage-delta
6363
id: delta
64+
env:
65+
PYTHONPATH: ./src:./tests
6466
continue-on-error: true
6567
run: |
68+
echo ">>>> >>>> current working folder: $pwd"
6669
pip install poetry==1.8.4 moto==4.2.11 mypy-boto3-dynamodb==1.35.54 boto3==1.26.165 coverage botocore==1.29.165 jmespath==1.0.1 python-dateutil==2.9.0 urllib3==1.26.20 s3transfer==0.6.2 typing-extensions==4.12.2
6770
export PYTHONPATH=./src:./tests
68-
PYTHONPATH=delta_backend/src:delta_backend/tests poetry run coverage run --source=delta_backend -m unittest discover -s delta_backend || echo "delta tests failed" >> failed_tests.txt
71+
PYTHONPATH=delta_backend/src:delta_backend/tests:./src:./tests poetry run coverage run --source=delta_backend -m unittest discover -s delta_backend || echo "delta tests failed" >> failed_tests.txt
6972
poetry run coverage xml -o sonarcloud-coverage-delta.xml
7073
7174
# - name: Run unittest with coverage-fhir-api

delta_backend/failed_tests.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
delta tests failed
2+
fhir-api tests failed
3+
fhir-api tests failed
4+
fhir-api tests failed

delta_backend/src/log_firehose.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def __init__(
1919
self.delivery_stream_name = stream_name
2020

2121
def send_log(self, log_message):
22+
print("SW >>>>>> NOT MOCKING send_log!!!")
2223
log_to_splunk = log_message
2324
logger.info(f"Log sent to Firehose for save: {log_to_splunk}")
2425
encoded_log_data = json.dumps(log_to_splunk).encode("utf-8")

failed_tests.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
delta tests failed
2+
fhir-api tests failed

0 commit comments

Comments
 (0)