def METHOD_NAME(monkeypatch):
    # The code detects existing conf.py with path.is_file()
    # so we mock it as True with pytest's monkeypatch
    def mock_isfile(path):
        return True
    monkeypatch.setattr(path, 'isfile', mock_isfile)
    qs.term_input = mock_input({
        'Please enter a new root path (or just Enter to exit)': '',
    })
    d = {}
    with pytest.raises(SystemExit):
        qs.ask_user(d)