Exemple #1
0
 def test_remove_user_cloud_alias_calls_user_client_with_expected_values(
     self,
     mock_detection_list_user_service,
     mock_departing_employee_service,
     mock_high_risk_employee_service,
 ):
     client = DetectionListsClient(
         mock_detection_list_user_service,
         mock_departing_employee_service,
         mock_high_risk_employee_service,
     )
     client.remove_user_cloud_alias(TEST_USER_ID, "oldalias")
     mock_detection_list_user_service.remove_cloud_alias.assert_called_once_with(
         TEST_USER_ID, "oldalias")
Exemple #2
0
 def test_remove_user_cloud_alias_returns_response(
     self,
     mock_detection_list_user_service,
     mock_departing_employee_service,
     mock_high_risk_employee_service,
 ):
     client = DetectionListsClient(
         mock_detection_list_user_service,
         mock_departing_employee_service,
         mock_high_risk_employee_service,
     )
     response = client.remove_user_cloud_alias(TEST_USER_ID, "oldalias")
     assert response