@@ -36,7 +36,7 @@ test('Bundling a function without dependencies', () => {
36
36
bundling : expect . objectContaining ( {
37
37
command : [
38
38
'bash' , '-c' ,
39
- 'cp -R /asset-input /asset-output' ,
39
+ 'cp -R /asset-input/ /asset-output' ,
40
40
] ,
41
41
} ) ,
42
42
} ) ) ;
@@ -62,7 +62,7 @@ test('Bundling a function with requirements.txt', () => {
62
62
bundling : expect . objectContaining ( {
63
63
command : [
64
64
'bash' , '-c' ,
65
- 'python -m pip install -r requirements.txt -t /asset-output && cp -R /asset-input /asset-output' ,
65
+ 'python -m pip install -r requirements.txt -t /asset-output && cp -R /asset-input/ /asset-output' ,
66
66
] ,
67
67
} ) ,
68
68
} ) ) ;
@@ -81,7 +81,7 @@ test('Bundling Python 2.7 with requirements.txt installed', () => {
81
81
bundling : expect . objectContaining ( {
82
82
command : [
83
83
'bash' , '-c' ,
84
- 'python -m pip install -r requirements.txt -t /asset-output && cp -R /asset-input /asset-output' ,
84
+ 'python -m pip install -r requirements.txt -t /asset-output && cp -R /asset-input/ /asset-output' ,
85
85
] ,
86
86
} ) ,
87
87
} ) ) ;
@@ -101,7 +101,7 @@ test('Bundling a layer with dependencies', () => {
101
101
bundling : expect . objectContaining ( {
102
102
command : [
103
103
'bash' , '-c' ,
104
- 'python -m pip install -r requirements.txt -t /asset-output/python && cp -R /asset-input /asset-output/python' ,
104
+ 'python -m pip install -r requirements.txt -t /asset-output/python && cp -R /asset-input/ /asset-output/python' ,
105
105
] ,
106
106
} ) ,
107
107
} ) ) ;
@@ -121,7 +121,7 @@ test('Bundling a python code layer', () => {
121
121
bundling : expect . objectContaining ( {
122
122
command : [
123
123
'bash' , '-c' ,
124
- 'cp -R /asset-input /asset-output/python' ,
124
+ 'cp -R /asset-input/ /asset-output/python' ,
125
125
] ,
126
126
} ) ,
127
127
} ) ) ;
@@ -141,7 +141,7 @@ test('Bundling a function with pipenv dependencies', () => {
141
141
bundling : expect . objectContaining ( {
142
142
command : [
143
143
'bash' , '-c' ,
144
- 'PIPENV_VENV_IN_PROJECT=1 pipenv lock -r > requirements.txt && rm -rf .venv && python -m pip install -r requirements.txt -t /asset-output/python && cp -R /asset-input /asset-output/python' ,
144
+ 'PIPENV_VENV_IN_PROJECT=1 pipenv lock -r > requirements.txt && rm -rf .venv && python -m pip install -r requirements.txt -t /asset-output/python && cp -R /asset-input/ /asset-output/python' ,
145
145
] ,
146
146
} ) ,
147
147
} ) ) ;
@@ -161,7 +161,7 @@ test('Bundling a function with poetry dependencies', () => {
161
161
bundling : expect . objectContaining ( {
162
162
command : [
163
163
'bash' , '-c' ,
164
- 'poetry export --with-credentials --format requirements.txt --output requirements.txt && python -m pip install -r requirements.txt -t /asset-output/python && cp -R /asset-input /asset-output/python' ,
164
+ 'poetry export --with-credentials --format requirements.txt --output requirements.txt && python -m pip install -r requirements.txt -t /asset-output/python && cp -R /asset-input/ /asset-output/python' ,
165
165
] ,
166
166
} ) ,
167
167
} ) ) ;
@@ -184,7 +184,7 @@ test('Bundling a function with custom bundling image', () => {
184
184
image,
185
185
command : [
186
186
'bash' , '-c' ,
187
- 'python -m pip install -r requirements.txt -t /asset-output/python && cp -R /asset-input /asset-output/python' ,
187
+ 'python -m pip install -r requirements.txt -t /asset-output/python && cp -R /asset-input/ /asset-output/python' ,
188
188
] ,
189
189
} ) ,
190
190
} ) ) ;
0 commit comments