def METHOD_NAME(tmp_path):
    """Test real run with no diags."""
    recipe_file = tmp_path / "recipe.yml"
    content = dedent("""
        documentation:
          title: Test recipe
          description: This is a test recipe.
          authors:
            - andela_bouwe
          references:
            - contact_authors
            - acknow_project
          projects:
            - c3s-magic
        diagnostics: null
    """)
    recipe_file.write_text(content)
    Config.get_config_user(path=tmp_path)
    log_dir = f'{tmp_path}/esmvaltool_output'
    config_file = f"{tmp_path}/config-user.yml"
    with open(config_file, 'r+') as file:
        config = yaml.safe_load(file)
        config['output_dir'] = log_dir
        yaml.safe_dump(config, file, sort_keys=False)
    with pytest.raises(RecipeError) as exc:
        ESMValTool().run(
            recipe_file, config_file=f"{tmp_path}/config-user.yml")
    assert str(exc.value) == 'The given recipe does not have any diagnostic.'
    log_file = os.path.join(log_dir,
                            os.listdir(log_dir)[0], 'run', 'main_log.txt')
    filled_recipe = os.path.exists(
        log_dir + '/' + os.listdir(log_dir)[0] + '/run/recipe_filled.yml')
    shutil.rmtree(log_dir)
    assert log_file
    assert not filled_recipe