docstr: Test that get_all_chat_messages returns all chat messages data.
docstr_tok: ["Test","that","get_all_chat_messages","returns","all","chat","messages","data","."]
code: def test_get_all_chat_messages_returns_all_chat_messages_data(
      self, mock_get
  ):
      """
      Test that get_all_chat_messages returns all chat messages data.
      """
  
      # configure the mock to return a response with 'status_code' 200
      mock_get.side_effect = [
          Mock(
              status_code=200,
              headers={"Content-Type": "application/json"},
              json=Mock(
                  return_value={
                      "value": ms_teams_handler_config.TEST_CHATS_DATA
                  }
              ),
          ),
          Mock(
              status_code=200,
              headers={"Content-Type": "application/json"},
              json=Mock(
                  return_value={
                      "value": ms_teams_handler_config.TEST_CHAT_MESSAGES_DATA
                  }
              ),
          ),
      ]
  
      chat_messages_data = self.api_client.get_all_chat_messages()
  
      # assert the requests.get calls were made with the expected arguments
      mock_get.assert_any_call(
          "https://graph.microsoft.com/v1.0/chats/",
          headers={"Authorization": "Bearer test_access_token"},
          params={"$expand": "lastMessagePreview", "$top": 20},
      )
  
      mock_get.assert_any_call(
          "https://graph.microsoft.com/v1.0/chats/test_id/messages/",
          headers={"Authorization": "Bearer test_access_token"},
          params={"$top": 20},
      )
  
      self.assertEqual(chat_messages_data[0]["id"], "test_id")
      self.assertEqual(chat_messages_data[0]["messageType"], "message")
      self.assertEqual(chat_messages_data[0]["chatId"], "test_chat_id")
  
imports: import unittest
  from unittest.mock import Mock, patch
  from mindsdb_sql.parser import ast
  from mindsdb_sql.parser.ast import Constant, BinaryOperation
  from mindsdb_sql.parser.ast.select.star import Star
  from mindsdb_sql.parser.ast.select.identifier import Identifier
  from mindsdb.integrations.handlers.ms_teams_handler.ms_teams_handler import MSTeamsHandler
  from mindsdb.integrations.handlers.ms_teams_handler.settings import ms_teams_handler_config
  from mindsdb.integrations.handlers.ms_teams_handler.ms_graph_api_teams_client import MSGraphAPITeamsClient
  from mindsdb.integrations.handlers.ms_teams_handler.ms_teams_tables import ChatsTable, ChatMessagesTable, ChannelsTable, ChannelMessagesTable
label_desc: Use image node_id 6 for calling the TestMSGraphAPITeamsClient obj's underlying member method code with example usage: obj.test_get_all_chat_messages_returns_all_chat_messages_data(mock_get) without return types