class_docstr: Test bootstrap.py's printing functions.
  
  (We use `IsolatedAsyncioTestCase` to ensure that an asyncio event loop
  exists in tests that implicitly rely on one.)
class_docstr_tok: ["Test","bootstrap.py","'s","printing","functions",".","(","We","use","`","IsolatedAsyncioTestCase","`","to","ensure","that","an","asyncio","event","loop","exists","in","tests","that","implicitly","rely","on","one",".",")"]
docstr: We should print a warning and disable static files serving when static
  folder total size is too large.
docstr_tok: ["We","should","print","a","warning","and","disable","static","files","serving","when","static","folder","total","size","is","too","large","."]
code: def test_maybe_print_static_folder_warning_if_folder_is_too_large(
      self, mock_echo
  ):
      """
      We should print a warning and disable static files serving when static
      folder total size is too large.
      """
  
      with testutil.patch_config_options(
          {"server.enableStaticServing": True}
      ), patch.object(config, "set_option") as mock_set_option:
          bootstrap._maybe_print_static_folder_warning(
              "app_root/main_script_path"
          )
          mock_echo.assert_called_once_with(
              "WARNING: Static folder size is larger than 1GB. "
              "Static file serving has been disabled.",
              fg="yellow",
          )
          mock_set_option.assert_called_once_with(
              "server.enableStaticServing", False
          )
  
imports: import os.path
  import sys
  import unittest
  from io import StringIO
  from unittest import IsolatedAsyncioTestCase
  from unittest.mock import Mock, patch
  import matplotlib
  import pytest
  from streamlit import config
  from streamlit.web import bootstrap
  from streamlit.web.bootstrap import NEW_VERSION_TEXT, _fix_pydantic_duplicate_validators_error
  from tests import testutil
  from tests.testutil import patch_config_options, should_skip_pydantic_tests
label_desc: Use image node_id 18 for calling the BootstrapPrintTest obj's underlying member method code with example usage: obj.test_maybe_print_static_folder_warning_if_folder_is_too_large(mock_echo) without return types