Skip to content

Commit 84dc28f

Browse files
committed
VED-350: Add return Type to prevalidation function and remove trailing white space
1 parent a4204e8 commit 84dc28f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

backend/src/models/utils/pre_validator_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ def for_integer_or_decimal(field_value: Union[int, Decimal], field_location: str
199199
def require_system_when_code_present(
200200
code_value:str,
201201
system_value:str,
202-
code_location,
203-
system_location,
204-
):
202+
code_location:str,
203+
system_location:str,
204+
) -> None:
205205
"""
206206
If code is present (non-empty), system must also be present (non-empty).
207207
"""

backend/tests/utils/values_for_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ValidValues:
6060
{"value": 2, "unit": "ml", "system": "http://snomed.info/sct", "code": "258773002"},
6161
{"value": 4, "unit": "ml", "system": "http://snomed.info/sct"},
6262
{"value": 5, "unit": "ml" }
63-
]
63+
]
6464

6565
manufacturer_resource_id_Man1 = {"resourceType": "Manufacturer", "id": "Man1"}
6666

@@ -386,4 +386,4 @@ class InvalidValues:
386386
]
387387

388388
invalid_dose_quantity = {"value": 2, "unit": "ml", "code": "258773002"}
389-
389+

0 commit comments

Comments
 (0)