@@ -157,6 +157,21 @@ test('py3.6 can package flask with hashes', t => {
157157 t . end ( ) ;
158158} ) ;
159159
160+ test ( 'py3.6 can package flask with nested' , t => {
161+ process . chdir ( 'tests/base' ) ;
162+ const path = npm ( [ 'pack' , '../..' ] ) ;
163+ npm ( [ 'i' , path ] ) ;
164+ sls ( [
165+ `--pythonBin=${ getPythonBin ( 3 ) } ` ,
166+ '--fileName=requirements-w-nested.txt' ,
167+ 'package'
168+ ] ) ;
169+ const zipfiles = listZipFiles ( '.serverless/sls-py-req-test.zip' ) ;
170+ t . true ( zipfiles . includes ( `flask${ sep } __init__.py` ) , 'flask is packaged' ) ;
171+ t . true ( zipfiles . includes ( `boto3${ sep } __init__.py` ) , 'boto3 is packaged' ) ;
172+ t . end ( ) ;
173+ } ) ;
174+
160175test ( 'py3.6 can package flask with zip option' , t => {
161176 process . chdir ( 'tests/base' ) ;
162177 const path = npm ( [ 'pack' , '../..' ] ) ;
@@ -1458,6 +1473,10 @@ test('py3.6 can package only requirements of module', t => {
14581473 zipfiles_hello . includes ( `pyaml${ sep } __init__.py` ) ,
14591474 'pyaml is packaged in function hello1'
14601475 ) ;
1476+ t . true (
1477+ zipfiles_hello . includes ( `boto3${ sep } __init__.py` ) ,
1478+ 'boto3 is packaged in function hello1'
1479+ ) ;
14611480 t . false (
14621481 zipfiles_hello . includes ( `flask${ sep } __init__.py` ) ,
14631482 'flask is NOT packaged in function hello1'
@@ -1478,6 +1497,10 @@ test('py3.6 can package only requirements of module', t => {
14781497 zipfiles_hello2 . includes ( `pyaml${ sep } __init__.py` ) ,
14791498 'pyaml is NOT packaged in function hello2'
14801499 ) ;
1500+ t . false (
1501+ zipfiles_hello2 . includes ( `boto3${ sep } __init__.py` ) ,
1502+ 'boto3 is NOT packaged in function hello2'
1503+ ) ;
14811504 t . true (
14821505 zipfiles_hello2 . includes ( `flask${ sep } __init__.py` ) ,
14831506 'flask is packaged in function hello2'
0 commit comments