|
|
@ -3,7 +3,7 @@ from scripttease.library.overlays.common import * |
|
|
|
|
|
|
|
|
|
|
|
def test_python_pip(): |
|
|
|
def test_python_pip(): |
|
|
|
c = python_pip("Pillow") |
|
|
|
c = python_pip("Pillow") |
|
|
|
assert "pip install -y Pillow" in c.get_statement() |
|
|
|
assert "pip install Pillow" in c.get_statement() |
|
|
|
|
|
|
|
|
|
|
|
c = python_pip("Pillow", upgrade=True) |
|
|
|
c = python_pip("Pillow", upgrade=True) |
|
|
|
assert "--upgrade" in c.get_statement() |
|
|
|
assert "--upgrade" in c.get_statement() |
|
|
@ -13,5 +13,10 @@ def test_python_pip(): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_python_virtual_env(): |
|
|
|
def test_python_virtual_env(): |
|
|
|
c = python_virtualenv() |
|
|
|
c = python_virtualenv("python") |
|
|
|
assert "virtualenv python" in c.get_statement() |
|
|
|
assert "virtualenv python" in c.get_statement() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_run(): |
|
|
|
|
|
|
|
c = run("ls -ls") |
|
|
|
|
|
|
|
assert "ls -ls" in c.get_statement() |
|
|
|