mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 08:31:00 -04:00
Got the unit test to be fixed, still figuring out a new test for the new
function. Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
This commit is contained in:
@@ -25,11 +25,16 @@ def test_client_creates_invite(
|
|||||||
"created_at",
|
"created_at",
|
||||||
"auth_type",
|
"auth_type",
|
||||||
"folder_permissions",
|
"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(
|
invite_api_client.create_invite(
|
||||||
"12345", "67890", "test@example.com", {"send_messages"}, "sms_auth", [fake_uuid]
|
"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",
|
"permissions": "send_emails,send_texts",
|
||||||
"invite_link_host": "http://localhost:6012",
|
"invite_link_host": "http://localhost:6012",
|
||||||
"folder_permissions": [fake_uuid],
|
"folder_permissions": [fake_uuid],
|
||||||
|
"nonce": fake_nonce,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user