def test_draft_editor_fallback(config_toml_with_draft_editor):
    """
    Test that the draft_editor config does pick up fallbacks
    normally set in LLMConfig class and from generic LLM.

    We expect the 'draft_editor' LLM to behave just like any custom LLM would.
    """
    config = OpenHandsConfig()
    load_from_toml(config, config_toml_with_draft_editor)

    # Check that the normal default fields come from LLMConfig where not overridden
    draft_editor_config = config.get_llm_config('draft_editor')
    # num_retries is an example default from llm section
    assert draft_editor_config.num_retries == 7

    Test that the draft_editor config does pick up fallbacks
    normally set in LLMConfig class and from generic LLM.

    We expect the 'draft_editor' LLM to behave just like any custom LLM would.
    
tests/unit/test_llm_draft_config.py