Ejemplo n.º 1
0
def test_preproc(history, inp, exp, xonsh_builtins):
    """Test the bash preprocessor."""
    from xontrib.bashisms import bash_preproc

    xonsh_builtins.__xonsh__.history.inps = history
    obs = bash_preproc(inp)
    assert exp == obs
Ejemplo n.º 2
0
def test_preproc(inp, exp, xonsh_builtins):
    """Test the bash preprocessor."""
    from xontrib.bashisms import bash_preproc

    xonsh_builtins.__xonsh__.history.inps = ["ls\n"]
    obs = bash_preproc(inp)
    assert exp == obs
Ejemplo n.º 3
0
def test_preproc(history, inp, exp, xession, bash_preproc):
    """Test the bash preprocessor."""

    xession.history.inps = history
    obs = bash_preproc(inp)
    assert exp == obs