Skip to content

Commit 4d43b6a

Browse files
committed
cleanup
1 parent 4431b01 commit 4d43b6a

File tree

4 files changed

+5
-37
lines changed

4 files changed

+5
-37
lines changed

lambdas/backend/tests/service/test_fhir_service.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
from authorisation.api_operation_code import ApiOperationCode
1515
from authorisation.authoriser import Authoriser
16-
from common.models.constants import NHS_NUMBER_USED_IN_SAMPLE_DATA
1716
from common.models.errors import (
1817
CustomValidationError,
1918
IdentifierDuplicationError,
@@ -34,6 +33,9 @@
3433
create_covid_immunization_dict_no_id,
3534
)
3635

36+
# Constants for use within the tests
37+
NHS_NUMBER_USED_IN_SAMPLE_DATA = "9000000009"
38+
3739

3840
class TestFhirServiceBase(unittest.TestCase):
3941
"""Base class for all tests to set up common fixtures"""

lambdas/recordforwarder/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ Note: Paths are relative to this directory, `recordforwarder`.
1919
2020
4. Run `make test` to run unit tests or individual tests by running:
2121
```
22-
python -m unittest tests.test_fhir_controller.TestSearchImmunizations
23-
python -m unittest tests.test_fhir_controller.TestSearchImmunizations.test_search_immunizations
22+
python -m unittest tests.test_fhir_batch_controller.TestCreateImmunizationBatchController
23+
python -m unittest tests.test_fhir_batch_controller.TestCreateImmunizationBatchController.test_send_request_to_dynamo_create_success
2424
```

lambdas/recordforwarder/src/constants.py

Lines changed: 0 additions & 28 deletions
This file was deleted.

lambdas/shared/src/common/models/constants.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,6 @@ class Constants:
6060
REINSTATED_RECORD_STATUS = "reinstated"
6161

6262

63-
# Constants for use within the test
64-
VALID_NHS_NUMBER = "1345678940" # Valid for pre, FHIR and post validators
65-
NHS_NUMBER_USED_IN_SAMPLE_DATA = "9000000009"
66-
ADDRESS_UNKNOWN_POSTCODE = "ZZ99 3WZ"
67-
68-
6963
class Urls:
7064
"""Urls which are expected to be used within the FHIR Immunization Resource json data"""
7165

0 commit comments

Comments
 (0)