def test(argstr=None, value=None): with test_app() as app: history = app.text_commander.history if argstr: history.append(argstr) options = mod.load_options(dummy_command, history) eq_(options, Options(value=value))
def test(argstr=None, value=None): with replace_history() as history: if argstr: history.append(argstr) options = mod.load_options(dummy_command, history) eq_(options, Options(value=value))