@@ -140,7 +140,11 @@ test('py3.6 packages have the same hash', t => {
140
140
sls ( [ 'package' ] ) ;
141
141
const fileHash = sha256File ( '.serverless/sls-py-req-test.zip' ) ;
142
142
sls ( [ 'package' ] ) ;
143
- t . equal ( sha256File ( '.serverless/sls-py-req-test.zip' ) , fileHash , 'packages have the same hash' ) ;
143
+ t . equal (
144
+ sha256File ( '.serverless/sls-py-req-test.zip' ) ,
145
+ fileHash ,
146
+ 'packages have the same hash'
147
+ ) ;
144
148
t . end ( ) ;
145
149
} ) ;
146
150
@@ -271,10 +275,7 @@ test(
271
275
272
276
const zipfiles = listZipFiles ( '.serverless/sls-py-req-test.zip' ) ;
273
277
t . true ( zipfiles . includes ( `flask${ sep } __init__.py` ) , 'flask is packaged' ) ;
274
- t . true (
275
- zipfiles . includes ( `boto3${ sep } __init__.py` ) ,
276
- 'boto3 is packaged'
277
- ) ;
278
+ t . true ( zipfiles . includes ( `boto3${ sep } __init__.py` ) , 'boto3 is packaged' ) ;
278
279
t . end ( ) ;
279
280
} ,
280
281
{ skip : ! canUseDocker ( ) }
@@ -652,7 +653,10 @@ test('pipenv py3.6 can package flask with default options', t => {
652
653
const zipfiles = listZipFiles ( '.serverless/sls-py-req-test.zip' ) ;
653
654
t . true ( zipfiles . includes ( `flask${ sep } __init__.py` ) , 'flask is packaged' ) ;
654
655
t . true ( zipfiles . includes ( `boto3${ sep } __init__.py` ) , 'boto3 is packaged' ) ;
655
- t . false ( zipfiles . includes ( `pytest${ sep } __init__.py` ) , 'dev-package pytest is NOT packaged' ) ;
656
+ t . false (
657
+ zipfiles . includes ( `pytest${ sep } __init__.py` ) ,
658
+ 'dev-package pytest is NOT packaged'
659
+ ) ;
656
660
t . end ( ) ;
657
661
} ) ;
658
662
@@ -1617,8 +1621,11 @@ test(
1617
1621
'foobar has retained its executable file permissions'
1618
1622
) ;
1619
1623
1620
- const zipfiles_hello2 = listZipFilesWithMetaData ( '.serverless/module2-sls-py-req-test-indiv-dev-hello2.zip' ) ;
1621
- const flaskPerm = statSync ( '.serverless/module2/requirements/bin/flask' ) . mode ;
1624
+ const zipfiles_hello2 = listZipFilesWithMetaData (
1625
+ '.serverless/module2-sls-py-req-test-indiv-dev-hello2.zip'
1626
+ ) ;
1627
+ const flaskPerm = statSync ( '.serverless/module2/requirements/bin/flask' )
1628
+ . mode ;
1622
1629
1623
1630
t . true (
1624
1631
zipfiles_hello2 [ 'bin/flask' ] . unixPermissions === flaskPerm ,
@@ -1651,8 +1658,11 @@ test(
1651
1658
'foobar has retained its executable file permissions'
1652
1659
) ;
1653
1660
1654
- const zipfiles_hello2 = listZipFilesWithMetaData ( '.serverless/module2-sls-py-req-test-indiv-dev-hello2.zip' ) ;
1655
- const flaskPerm = statSync ( '.serverless/module2/requirements/bin/flask' ) . mode ;
1661
+ const zipfiles_hello2 = listZipFilesWithMetaData (
1662
+ '.serverless/module2-sls-py-req-test-indiv-dev-hello2.zip'
1663
+ ) ;
1664
+ const flaskPerm = statSync ( '.serverless/module2/requirements/bin/flask' )
1665
+ . mode ;
1656
1666
1657
1667
t . true (
1658
1668
zipfiles_hello2 [ 'bin/flask' ] . unixPermissions === flaskPerm ,
@@ -1681,10 +1691,7 @@ test('py3.6 uses download cache by defaul option', t => {
1681
1691
process . chdir ( 'tests/base' ) ;
1682
1692
const path = npm ( [ 'pack' , '../..' ] ) ;
1683
1693
npm ( [ 'i' , path ] ) ;
1684
- sls ( [
1685
- '--cacheLocation=.requirements-cache' ,
1686
- 'package'
1687
- ] ) ;
1694
+ sls ( [ '--cacheLocation=.requirements-cache' , 'package' ] ) ;
1688
1695
t . true (
1689
1696
pathExistsSync ( `.requirements-cache${ sep } downloadCacheslspyc${ sep } http` ) ,
1690
1697
'cache directoy exists'
@@ -1753,10 +1760,7 @@ test(
1753
1760
process . chdir ( 'tests/base' ) ;
1754
1761
const path = npm ( [ 'pack' , '../..' ] ) ;
1755
1762
npm ( [ 'i' , path ] ) ;
1756
- sls ( [
1757
- '--dockerizePip=true' ,
1758
- 'package'
1759
- ] ) ;
1763
+ sls ( [ '--dockerizePip=true' , 'package' ] ) ;
1760
1764
const cachepath = getUserCachePath ( ) ;
1761
1765
const cacheFolderHash = sha256Path ( '.serverless/requirements.txt' ) ;
1762
1766
t . true (
@@ -1832,11 +1836,7 @@ test(
1832
1836
process . chdir ( 'tests/base' ) ;
1833
1837
const path = npm ( [ 'pack' , '../..' ] ) ;
1834
1838
npm ( [ 'i' , path ] ) ;
1835
- sls ( [
1836
- '--dockerizePip=true' ,
1837
- '--slim=true' ,
1838
- 'package'
1839
- ] ) ;
1839
+ sls ( [ '--dockerizePip=true' , '--slim=true' , 'package' ] ) ;
1840
1840
const cachepath = getUserCachePath ( ) ;
1841
1841
const cacheFolderHash = sha256Path ( '.serverless/requirements.txt' ) ;
1842
1842
t . true (
@@ -1855,11 +1855,7 @@ test(
1855
1855
`${ cachepath } ${ sep } ${ cacheFolderHash } _slspyc${ sep } injected_file_is_bad_form` ,
1856
1856
'injected new file into static cache folder'
1857
1857
) ;
1858
- sls ( [
1859
- '--dockerizePip=true' ,
1860
- '--slim=true' ,
1861
- 'package'
1862
- ] ) ;
1858
+ sls ( [ '--dockerizePip=true' , '--slim=true' , 'package' ] ) ;
1863
1859
1864
1860
const zipfiles = listZipFiles ( '.serverless/sls-py-req-test.zip' ) ;
1865
1861
t . true (
@@ -1883,11 +1879,7 @@ test(
1883
1879
process . chdir ( 'tests/base' ) ;
1884
1880
const path = npm ( [ 'pack' , '../..' ] ) ;
1885
1881
npm ( [ 'i' , path ] ) ;
1886
- sls ( [
1887
- '--dockerizePip=true' ,
1888
- '--slim=true' ,
1889
- 'package'
1890
- ] ) ;
1882
+ sls ( [ '--dockerizePip=true' , '--slim=true' , 'package' ] ) ;
1891
1883
const cachepath = getUserCachePath ( ) ;
1892
1884
t . true (
1893
1885
pathExistsSync ( `${ cachepath } ${ sep } downloadCacheslspyc${ sep } http` ) ,
0 commit comments