def test_run_eg_informs_if_no_editor():
    """
    Inform the user if they've requested to use an editor but we can't find
    one.
    """
    args = _create_mock_args(program='awk', edit=True)
    config_no_editor = _create_config(editor_cmd=None)
    _helper_run_eg_responds_to_args_correctly(
        args, call_no_editor=True, resolved_config=config_no_editor
    )

    Inform the user if they've requested to use an editor but we can't find
    one.
    
test/core_test.py