Esempio n. 1
0
 def test_refresh_user_scim_attributes_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.refresh_user_scim_attributes(TEST_USER_ID)
     mock_detection_list_user_service.refresh.assert_called_once_with(
         TEST_USER_ID)
Esempio n. 2
0
 def test_refresh_user_scim_attributes_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.refresh_user_scim_attributes(TEST_USER_ID)
     assert response