def test_search_users_by_username_with_authentication_header_works_properly( self): input_request = Request(headers=authentication_headers) client_request = ClientRequest(input_request) self.assertIsInstance( client_request.search_users_by_username_data(mock, mock), SearchUsersDTO)
def search_user(team_id, searched_username): logger.info(f"Attempting to search for user in team #{team_id}") req = ClientRequest(request) found_users = TeamService.search_users( req.search_users_by_username_data(team_id, searched_username)) return jsonify(found_users.json()), found_users.status_code()