Skip to content

Commit 569e583

Browse files
committed
VED-457: change return type and e2e update response
1 parent fc0e4d3 commit 569e583

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/src/fhir_repository.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import time
44
import uuid
55
from dataclasses import dataclass
6-
from typing import Optional
6+
from typing import Optional, Tuple
77

88
import boto3
99
import botocore.exceptions
@@ -299,7 +299,7 @@ def _perform_dynamo_update(
299299
supplier_system: str,
300300
deleted_at_required: bool,
301301
update_reinstated: bool,
302-
) -> dict:
302+
) -> Tuple[dict, int]:
303303
try:
304304
updated_version = existing_resource_version + 1
305305
condition_expression = Attr("PK").eq(attr.pk) & (

e2e/test_update_immunization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_update_imms(self):
3131

3232
# Then
3333
self.assertEqual(response.status_code, 200, response.text)
34-
self.assertEqual(response.text, "")
34+
self.assertEqual(response.text, {"E-Tag": 2})
3535
self.assertNotIn("Location", response.headers)
3636

3737
def test_update_non_existent_identifier(self):

0 commit comments

Comments
 (0)