Exemplo n.º 1
0
def test_history_file():
    with tempfile.NamedTemporaryFile() as f:
        cfg = load_config()
        cfg.set('interactive', 'HISTORY_FILE', f.name)
        assert _setup_readline(cfg=cfg)
Exemplo n.º 2
0
def test_no_config():
    assert not _setup_readline()
Exemplo n.º 3
0
def test_no_history_file():
    cfg = load_config()
    cfg.set('interactive', 'HISTORY_FILE', '')
    assert _setup_readline(cfg=cfg)