Skip to content

Commit 864060a

Browse files
Fixed integration tests.
1 parent 5d95435 commit 864060a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/integration/repo/test_person_repo.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,23 @@ def test_person_found(person_table: Any, persisted_person: NHSNumber,
3434
)
3535

3636

37-
def test_items_not_found_raises_error(person_table: Any, faker: Faker):
37+
def test_items_not_found_raises_error(person_table: Any, faker: Faker,
38+
hashing_service: HashingService,):
3839
# Given
3940
nhs_number = NHSNumber(faker.nhs_number())
40-
repo = PersonRepo(person_table)
41+
repo = PersonRepo(person_table, hashing_service)
4142

4243
# When, Then
4344
with pytest.raises(NotFoundError):
4445
repo.get_eligibility_data(nhs_number)
4546

4647

4748
def test_items_found_but_person_attribute_type_not_found_raises_error(
48-
person_table: Any, persisted_person_with_no_person_attribute_type: NHSNumber
49-
):
49+
person_table: Any, persisted_person_with_no_person_attribute_type: NHSNumber,
50+
hashing_service: HashingService):
51+
5052
# Given
51-
repo = PersonRepo(person_table)
53+
repo = PersonRepo(person_table, hashing_service)
5254

5355
## When, Then
5456
with pytest.raises(NotFoundError):

0 commit comments

Comments
 (0)