From 866a4ad7bd2bc22e69efbf72e5e0edee65ec7f92 Mon Sep 17 00:00:00 2001 From: Cliff Hill Date: Mon, 21 Oct 2024 12:48:22 -0400 Subject: [PATCH] Got the unit test to be fixed, still figuring out a new test for the new function. Signed-off-by: Cliff Hill --- tests/app/notify_client/test_invite_client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/app/notify_client/test_invite_client.py b/tests/app/notify_client/test_invite_client.py index d12832c2f..a251d5367 100644 --- a/tests/app/notify_client/test_invite_client.py +++ b/tests/app/notify_client/test_invite_client.py @@ -25,11 +25,16 @@ def test_client_creates_invite( "created_at", "auth_type", "folder_permissions", + "nonce", } ) }, ) + mock_token_urlsafe = mocker.patch("secrets.token_urlsafe") + fake_nonce = "1234567890" + mock_token_urlsafe.return_value = fake_nonce + invite_api_client.create_invite( "12345", "67890", "test@example.com", {"send_messages"}, "sms_auth", [fake_uuid] ) @@ -45,6 +50,7 @@ def test_client_creates_invite( "permissions": "send_emails,send_texts", "invite_link_host": "http://localhost:6012", "folder_permissions": [fake_uuid], + "nonce": fake_nonce, }, )