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:
Cliff Hill
2024-10-21 12:48:22 -04:00
parent 579a65c92d
commit 866a4ad7bd

View File

@@ -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,
},
)