class_docstr: Tests that involve loading the config.toml file.
class_docstr_tok: ["Tests","that","involve","loading","the","config.toml","file","."]
docstr: Test that a warning is logged if a user changes a config file in the
  server section.
code: def test_config_options_warn_on_server_change(self, get_logger):
      """Test that a warning is logged if a user changes a config file in the
      server section."""
  
      global_config_path = "/mock/home/folder/.streamlit/config.toml"
      makedirs_patch = patch("streamlit.config.os.makedirs")
      makedirs_patch.return_value = True
      pathexists_patch = patch("streamlit.config.os.path.exists")
      pathexists_patch.side_effect = (
          lambda path: path == global_config_path
      )
      mock_logger = get_logger()
  
      global_config = """
          [server]
          address = "localhost"
          """
      open_patch = patch(
          "streamlit.config.open", mock_open(read_data=global_config)
      )
  
      with open_patch, makedirs_patch, pathexists_patch:
          config.get_config_options()
  
      global_config = """
          [server]
          address = "streamlit.io"
          """
      open_patch = patch(
          "streamlit.config.open", mock_open(read_data=global_config)
      )
  
      with open_patch, makedirs_patch, pathexists_patch:
          config.get_config_options(force_reparse=True)
  
      mock_logger.warning.assert_any_call(
          "An update to the [server] config option section was detected."
          " To have these changes be reflected, please restart streamlit."
      )
  
imports: import copy
  import os
  import textwrap
  import unittest
  from unittest.mock import MagicMock, mock_open, patch
  import pytest
  from parameterized import parameterized
  from streamlit import config, env_util
  from streamlit.config_option import ConfigOption
  from streamlit.errors import StreamlitAPIException
label_desc: Use image node_id 11 for calling the ConfigLoadingTest obj's underlying member method code with example usage: obj.test_config_options_warn_on_server_change(get_logger) without return types