forked from GoogleCloudPlatform/python-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathno-virtualenv.yaml
More file actions
55 lines (45 loc) · 1.85 KB
/
no-virtualenv.yaml
File metadata and controls
55 lines (45 loc) · 1.85 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
48
49
50
51
52
53
54
55
schemaVersion: "1.0.0"
commandTests:
- name: "default python installation"
command: ["which", "python"]
expectedOutput: ["/usr/bin/python\n"]
- name: "default pip installation"
command: ["which", "pip"]
expectedOutput: ["/usr/local/bin/pip\n"]
- name: "default pip python version"
command: ["pip", "-V"]
expectedOutput: ["pip .* from .*python 2[.]7"]
- name: "default virtualenv installation"
command: ["which", "virtualenv"]
expectedOutput: ["/usr/local/bin/virtualenv\n"]
- name: "default python2.7 installation"
command: ["which", "python2.7"]
expectedOutput: ["/usr/bin/python2.7\n"]
- name: "default python3.4 installation"
command: ["which", "python3.4"]
expectedOutput: ["/opt/python3.4/bin/python3.4\n"]
- name: "default python3.5 installation"
command: ["which", "python3.5"]
expectedOutput: ["/opt/python3.5/bin/python3.5\n"]
- name: "default python3.6 installation"
command: ["which", "python3.6"]
expectedOutput: ["/opt/python3.6/bin/python3.6\n"]
- name: "default gunicorn installation"
setup: [["pip", "install", "gunicorn"]]
command: ["which", "gunicorn"]
expectedOutput: ["/usr/local/bin/gunicorn\n"]
- # Regression test for issue187
name: "default python3 installation"
command: ["which", "python3"]
expectedOutput: ["/usr/local/bin/python3\n"]
- name: "default python3 version"
command: ["python3", "--version"]
expectedOutput: ["Python 3.6.8\n"]
- name: "default pip3 installation"
command: ["which", "pip3"]
expectedOutput: ["/usr/local/bin/pip3\n"]
- name: "default flask installation"
# Checks that 'pip' and 'python' are using the same Python version
setup: [["pip", "install", "flask"]]
command: ["python", "-c", "import flask; print(flask.__file__)"]
expectedOutput: ["/usr/local/lib/python2.7/dist-packages/flask"]