def test_get_egrc_config_uses_home_dir_default_no_xdg_dir():
    """
    Fallback to the home directory config if there is no XDG directory.
    """
    expected = 'mock config from default position'

    _assert_about_get_egrc_config(
        cli_path=None,
        cli_config_exists=False,
        winning_config_path=os.path.join('~', '.egrc_expanded'),
        home_config_exists=True,
        expected_config=expected,
        xdg_dir_variable=None,
        xdg_config_exists=False,
    )

    Fallback to the home directory config if there is no XDG directory.
    
test/config_test.py