code: def test_http_url_warning(*_):
      class Root(EmptyFlow):
          def configure_layout(self):
              return [
                  {
                      "name": "warning expected",
                      "content": "http://github.com/very/long/link/to/display",
                  },
                  {
                      "name": "no warning expected",
                      "content": "https://github.com",
                  },
              ]
  
      root = Root()
  
      with pytest.warns(
          UserWarning,
          match=escape(
              "You configured an http link http://github.com/very/long/link... but it won't be accessible"
          ),
      ):
          LightningApp(root)
  
imports: from re import escape
  from unittest import mock
  from unittest.mock import Mock
  import pytest
  from lightning.app import LightningApp, LightningFlow
  from lightning.app.frontend.stream_lit import StreamlitFrontend
  from lightning.app.frontend.web import StaticWebFrontend
  from lightning.app.runners import MultiProcessRuntime
  from lightning.app.testing.helpers import EmptyFlow
  from lightning.app.utilities.imports import _IS_WINDOWS
label_desc: Use image node_id 10 for calling a global function with example usage: test_http_url_warning() and returns: list