Ejemplo n.º 1
0
 def test_remove_user_risk_tags_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_risk_tags(TEST_USER_ID, "oldtag")
     mock_detection_list_user_service.remove_risk_tags.assert_called_once_with(
         TEST_USER_ID, "oldtag")
Ejemplo n.º 2
0
 def test_remove_user_risk_tags_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_risk_tags(TEST_USER_ID, "oldtag")
     assert response