docstr: Test that empty strings or None values in UI ignored.
docstr_tok: ["Test","that","empty","strings","or","None","values","in","UI","ignored","."]
code: def test_prefixed_extra_created_in_ui_connections(
      self, conn_type, empty_value
  ):
      """Test that empty strings or None values in UI ignored."""
      extra_config = ConnectionExtraConfig(
          conn_type=conn_type,
          conn_id="test-conn-id",
          extra={
              f"extra__{conn_type}__arg_missing": empty_value,
              "arg_extra": "bar",
              f"extra__{conn_type}__arg_extra": empty_value,
          },
      )
      error_message = r"Couldn't find '.*' or '.*' in Connection \('.*'\) Extra and no default value specified\."
      with pytest.raises(KeyError, match=error_message):
          # No fallback should raise an error
          extra_config.get("arg_missing")
  
      assert extra_config.get("arg_missing", default="foo") == "foo"
      assert extra_config.get("arg_extra") == "bar"
  
file_path: airflow/tests/providers/slack/utils/test_utils.py
imports: from __future__ import annotations
  import pytest
  from airflow.providers.slack.utils import ConnectionExtraConfig, parse_filename
label_desc: Use image node_id 5 for calling the TestConnectionExtra obj's underlying member method code with example usage: obj.test_prefixed_extra_created_in_ui_connections(conn_type, empty_value) without return types