mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
PAS Hub happy path asserts file_source "pas hub" 🟩
This commit is contained in:
parent
a4ad1ca11c
commit
20ad0616bc
1 changed files with 2 additions and 1 deletions
|
|
@ -148,10 +148,11 @@ def test_run_persists_uploaded_file_records_to_db() -> None:
|
|||
service.run(make_request(uprn="12345"))
|
||||
|
||||
fake_session.add_all.assert_called_once()
|
||||
added: list = fake_session.add_all.call_args[0][0]
|
||||
added: list[Any] = fake_session.add_all.call_args[0][0]
|
||||
assert len(added) == 1
|
||||
assert added[0].s3_file_bucket == "test-bucket"
|
||||
assert added[0].uprn == 12345
|
||||
assert added[0].file_source == FileSourceEnum.PAS_HUB.value
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue