コード例 #1
0
def test_shellescape_relpath_longer(tmpdir):
    tmpdir.chdir()
    path = Path('/a/b')
    args = (path.strpath, )
    assert venv_update.shellescape(args) == path.strpath
コード例 #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
コード例 #3
0
def test_shellescape(args, expected):
    assert venv_update.shellescape(args) == expected
コード例 #4
0
ファイル: simple_test.py プロジェクト: Yelp/venv-update
def test_shellescape_relpath_longer(tmpdir):
    tmpdir.chdir()
    path = Path('/a/b')
    args = (path.strpath,)
    assert venv_update.shellescape(args) == path.strpath
コード例 #5
0
ファイル: simple_test.py プロジェクト: Yelp/venv-update
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
コード例 #6
0
ファイル: simple_test.py プロジェクト: Yelp/venv-update
def test_shellescape(args, expected):
    assert venv_update.shellescape(args) == expected