Skip to content

Commit f87b094

Browse files
committed
added code
1 parent 4acedad commit f87b094

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616

1717
- name: Run unittest with coverage
1818
run: |
19+
pwd
1920
pip install poetry moto==4.2.11 coverage redis botocore==1.35.49 simplejson responses structlog fhir.resources jsonpath_ng pydantic==1.10.13 requests aws-lambda-typing cffi pyjwt boto3-stubs-lite[dynamodb]~=1.26.90
2021
coverage run -m unittest discover
2122
coverage xml -o sonarcloud-coverage.xml

backend/tests/test_batch/test_decorators.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@
1111
import unittest
1212
from unittest.mock import MagicMock, patch
1313

14-
import os
15-
import sys
16-
maindir=os.path.dirname(__file__)
17-
srcdir='../src'
18-
sys.path.insert(0,os.path.abspath(os.path.join(maindir,srcdir)))
14+
1915

2016
from batch.decorators import (
2117
_decorate_patient,
@@ -27,7 +23,7 @@
2723
_decorate_immunization,
2824
)
2925
from batch.errors import DecoratorError, TransformerFieldError, TransformerRowError, TransformerUnhandledError
30-
from decorators_constants import AllHeaders, AllHeadersExpectedOutput, ExtensionItems
26+
from tests.test_batch.decorators_constants import AllHeaders, AllHeadersExpectedOutput, ExtensionItems
3127
from constants import VALID_NHS_NUMBER
3228

3329
raw_imms: dict = {"resourceType": "Immunization", "contained": []}

0 commit comments

Comments
 (0)