Skip to content

Commit

Permalink
Added new assertions to test
Browse files Browse the repository at this point in the history
  • Loading branch information
guffee23 committed Nov 26, 2024
1 parent 627d6aa commit 67b1492
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sbl_filing_api/services/request_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@


def send_confirmation_email(
user_full_name: EmailStr,
user_full_name: str,
user_email: EmailStr,
contact_info_email: EmailStr,
confirmation_id: EmailStr,
confirmation_id: str,
timestamp: int,
):
confirmation_request = {
Expand Down
2 changes: 2 additions & 0 deletions tests/api/routers/test_filing_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,8 @@ async def test_good_sign_filing(
),
)
send_email_mock.assert_called_with("Test User", "[email protected]", "[email protected]", ANY, ANY)
assert send_email_mock.call_args.args[3].startswith("1234567890ABCDEFGH00-2024-5-")
assert float(send_email_mock.call_args.args[4]) == pytest.approx(int(dt.now().timestamp()), abs=1.5)
assert upsert_mock.call_args.args[1].confirmation_id.startswith("1234567890ABCDEFGH00-2024-5-")
assert res.status_code == 200
assert float(upsert_mock.call_args.args[1].confirmation_id.split("-")[3]) == pytest.approx(
Expand Down

0 comments on commit 67b1492

Please sign in to comment.