From afa9ef808230680f9609b4dfa0ff16572de4cc9a Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Tue, 9 Jan 2024 10:38:29 -0800 Subject: [PATCH] update test --- tests/app/main/views/test_accept_invite.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/app/main/views/test_accept_invite.py b/tests/app/main/views/test_accept_invite.py index 4bb0274bb..76d3a6b79 100644 --- a/tests/app/main/views/test_accept_invite.py +++ b/tests/app/main/views/test_accept_invite.py @@ -309,7 +309,11 @@ def test_accepting_invite_removes_invite_from_session( sample_invite["email_address"] = user["email_address"] client_request.login(user) - + mocker.patch("app.job_api_client.get_job", return_value=MOCK_ONE_OFF_JOB) + mocker.patch( + "app.notification_api_client.get_notifications_for_service", + return_value=FAKE_ONE_OFF_NOTIFICATION, + ) page = client_request.get( "main.accept_invite", token="thisisnotarealtoken",