Ejemplo n.º 1
0
def test_shellescape_relpath_longer(tmpdir):
    tmpdir.chdir()
    path = Path('/a/b')
    args = (path.strpath, )
    assert venv_update.shellescape(args) == path.strpath
Ejemplo n.º 2
0
def test_shellescape_relpath(path, expected, tmpdir):
    tmpdir.chdir()
    tmpfile = tmpdir.join(path)
    args = (tmpfile.strpath, )
    assert venv_update.shellescape(args) == expected
    assert expected != tmpfile.strpath
Ejemplo n.º 3
0
def test_shellescape(args, expected):
    assert venv_update.shellescape(args) == expected
Ejemplo n.º 4
0
def test_shellescape_relpath_longer(tmpdir):
    tmpdir.chdir()
    path = Path('/a/b')
    args = (path.strpath,)
    assert venv_update.shellescape(args) == path.strpath
Ejemplo n.º 5
0
def test_shellescape_relpath(path, expected, tmpdir):
    tmpdir.chdir()
    tmpfile = tmpdir.join(path)
    args = (tmpfile.strpath,)
    assert venv_update.shellescape(args) == expected
    assert expected != tmpfile.strpath
Ejemplo n.º 6
0
def test_shellescape(args, expected):
    assert venv_update.shellescape(args) == expected