class_docstr: Tests that involve loading the config.toml file.
class_docstr_tok: ["Tests","that","involve","loading","the","config.toml","file","."]
docstr: Test that $CWD/.streamlit/config.toml is read, even
  if ~/.streamlit/config.toml is missing.
code: def test_load_local_config(self):
      """Test that $CWD/.streamlit/config.toml is read, even
      if ~/.streamlit/config.toml is missing.
      """
  
      local_config = """
          [theme]
          base = "light"
          textColor = "#FFFFFF"
          """
  
      local_config_path = os.path.join(
          os.getcwd(), ".streamlit/config.toml"
      )
  
      open_patch = patch(
          "streamlit.config.open", mock_open(read_data=local_config)
      )
      # patch streamlit.*.os.* instead of os.* for py35 compat
      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 == local_config_path
      )
  
      with open_patch, makedirs_patch, pathexists_patch:
          config.get_config_options()
  
          self.assertEqual(
              "#FFFFFF", config.get_option("theme.textColor")
          )
          self.assertIsNone(config.get_option("theme.font"))
  
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 5 for calling the ConfigLoadingTest obj's underlying member method code with example usage: obj.test_load_local_config() without return types