forked from GoogleCloudPlatform/python-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvirtualenv_python27.yaml
More file actions
47 lines (39 loc) · 1.57 KB
/
virtualenv_python27.yaml
File metadata and controls
47 lines (39 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
schemaVersion: "1.0.0"
globalEnvVars:
- key: "VIRTUAL_ENV"
value: "/env"
- key: "PATH"
value: "/env/bin:$PATH"
commandTests:
- name: "virtualenv27 python installation"
setup: [["virtualenv", "-p", "python", "/env"]]
command: ["which", "python"]
expectedOutput: ["/env/bin/python\n"]
- name: "virtualenv27 python2 installation"
setup: [["virtualenv", "-p", "python", "/env"]]
command: ["which", "python2"]
expectedOutput: ["/env/bin/python2\n"]
- name: "virtualenv27python2.7 installation"
setup: [["virtualenv", "-p", "python", "/env"]]
command: ["which", "python2.7"]
expectedOutput: ["/env/bin/python2.7\n"]
- name: "virtualenv27 python version"
setup: [["virtualenv", "-p", "python", "/env"]]
command: ["python", "--version"]
# we check stderr instead of stdout for Python versions < 3.4
# https://bugs.python.org/issue18338
expectedError: ["Python 2.7.(9|12)\n"]
- name: "virtualenv27 pip installation"
setup: [["virtualenv", "-p", "python", "/env"]]
command: ["which", "pip"]
expectedOutput: ["/env/bin/pip\n"]
- name: "virtualenv27 gunicorn installation"
setup: [["virtualenv", "-p", "python", "/env"],
["pip", "install", "gunicorn"]]
command: ["which", "gunicorn"]
expectedOutput: ["/env/bin/gunicorn"]
- name: "virtualenv27 flask installation"
setup: [["virtualenv", "-p", "python", "/env"],
["pip", "install", "flask"]]
command: ["python", "-c", "import flask; print(flask.__file__)"]
expectedOutput: ["/env/local/lib/python2.7/site-packages/flask"]