@@ -1373,30 +1373,36 @@ test(
1373
1373
{ skip : ! canUseDocker ( ) || process . platform === 'win32' }
1374
1374
) ;
1375
1375
1376
- test . skip ( 'py3.7 uses download cache by default option' , async ( t ) => {
1377
- process . chdir ( 'tests/base' ) ;
1378
- const path = npm ( [ 'pack' , '../..' ] ) ;
1379
- npm ( [ 'i' , path ] ) ;
1380
- sls ( [ 'package' ] , { env : { } } ) ;
1381
- const cachepath = getUserCachePath ( ) ;
1382
- t . true (
1383
- pathExistsSync ( `${ cachepath } ${ sep } downloadCacheslspyc${ sep } http` ) ,
1384
- 'cache directory exists'
1385
- ) ;
1386
- t . end ( ) ;
1387
- } ) ;
1376
+ test ( 'py3.7 uses download cache by default option' ,
1377
+ async ( t ) => {
1378
+ process . chdir ( 'tests/base' ) ;
1379
+ const path = npm ( [ 'pack' , '../..' ] ) ;
1380
+ npm ( [ 'i' , path ] ) ;
1381
+ sls ( [ 'package' ] , { env : { } } ) ;
1382
+ const cachepath = getUserCachePath ( ) ;
1383
+ t . true (
1384
+ pathExistsSync ( `${ cachepath } ${ sep } downloadCacheslspyc${ sep } http` ) ,
1385
+ 'cache directory exists'
1386
+ ) ;
1387
+ t . end ( ) ;
1388
+ } ,
1389
+ { skip : true }
1390
+ ) ;
1388
1391
1389
- test . skip ( 'py3.7 uses download cache by default' , async ( t ) => {
1390
- process . chdir ( 'tests/base' ) ;
1391
- const path = npm ( [ 'pack' , '../..' ] ) ;
1392
- npm ( [ 'i' , path ] ) ;
1393
- sls ( [ 'package' ] , { env : { cacheLocation : '.requirements-cache' } } ) ;
1394
- t . true (
1395
- pathExistsSync ( `.requirements-cache${ sep } downloadCacheslspyc${ sep } http` ) ,
1396
- 'cache directory exists'
1397
- ) ;
1398
- t . end ( ) ;
1399
- } ) ;
1392
+ test ( 'py3.7 uses download cache by default' ,
1393
+ async ( t ) => {
1394
+ process . chdir ( 'tests/base' ) ;
1395
+ const path = npm ( [ 'pack' , '../..' ] ) ;
1396
+ npm ( [ 'i' , path ] ) ;
1397
+ sls ( [ 'package' ] , { env : { cacheLocation : '.requirements-cache' } } ) ;
1398
+ t . true (
1399
+ pathExistsSync ( `.requirements-cache${ sep } downloadCacheslspyc${ sep } http` ) ,
1400
+ 'cache directory exists'
1401
+ ) ;
1402
+ t . end ( ) ;
1403
+ } ,
1404
+ { skip : true }
1405
+ ) ;
1400
1406
1401
1407
test (
1402
1408
'py3.7 uses download cache with dockerizePip option' ,
@@ -1412,10 +1418,11 @@ test(
1412
1418
) ;
1413
1419
t . end ( ) ;
1414
1420
} ,
1415
- { skip : ! canUseDocker ( ) || brokenOn ( 'win32' ) }
1421
+ // { skip: !canUseDocker() || brokenOn('win32') }
1422
+ { skip : true }
1416
1423
) ;
1417
1424
1418
- test . skip (
1425
+ test (
1419
1426
'py3.7 uses download cache with dockerizePip by default option' ,
1420
1427
async ( t ) => {
1421
1428
process . chdir ( 'tests/base' ) ;
@@ -1430,29 +1437,33 @@ test.skip(
1430
1437
) ;
1431
1438
t . end ( ) ;
1432
1439
} ,
1433
- { skip : ! canUseDocker ( ) || brokenOn ( 'win32' ) }
1440
+ // { skip: !canUseDocker() || brokenOn('win32') }
1441
+ { skip : true }
1434
1442
) ;
1435
1443
1436
- test . skip ( 'py3.7 uses static and download cache' , async ( t ) => {
1437
- process . chdir ( 'tests/base' ) ;
1438
- const path = npm ( [ 'pack' , '../..' ] ) ;
1439
- npm ( [ 'i' , path ] ) ;
1440
- sls ( [ 'package' ] , { env : { } } ) ;
1441
- const cachepath = getUserCachePath ( ) ;
1442
- const cacheFolderHash = sha256Path ( '.serverless/requirements.txt' ) ;
1443
- const arch = 'x86_64' ;
1444
- t . true (
1445
- pathExistsSync ( `${ cachepath } ${ sep } downloadCacheslspyc${ sep } http` ) ,
1446
- 'http exists in download-cache'
1447
- ) ;
1448
- t . true (
1449
- pathExistsSync (
1450
- `${ cachepath } ${ sep } ${ cacheFolderHash } _${ arch } _slspyc${ sep } flask`
1451
- ) ,
1452
- 'flask exists in static-cache'
1453
- ) ;
1454
- t . end ( ) ;
1455
- } ) ;
1444
+ test ( 'py3.7 uses static and download cache' ,
1445
+ async ( t ) => {
1446
+ process . chdir ( 'tests/base' ) ;
1447
+ const path = npm ( [ 'pack' , '../..' ] ) ;
1448
+ npm ( [ 'i' , path ] ) ;
1449
+ sls ( [ 'package' ] , { env : { } } ) ;
1450
+ const cachepath = getUserCachePath ( ) ;
1451
+ const cacheFolderHash = sha256Path ( '.serverless/requirements.txt' ) ;
1452
+ const arch = 'x86_64' ;
1453
+ t . true (
1454
+ pathExistsSync ( `${ cachepath } ${ sep } downloadCacheslspyc${ sep } http` ) ,
1455
+ 'http exists in download-cache'
1456
+ ) ;
1457
+ t . true (
1458
+ pathExistsSync (
1459
+ `${ cachepath } ${ sep } ${ cacheFolderHash } _${ arch } _slspyc${ sep } flask`
1460
+ ) ,
1461
+ 'flask exists in static-cache'
1462
+ ) ;
1463
+ t . end ( ) ;
1464
+ } ,
1465
+ { skip : true }
1466
+ ) ;
1456
1467
1457
1468
test (
1458
1469
'py3.7 uses static and download cache with dockerizePip option' ,
0 commit comments