Skip to content

Commit 2d13f13

Browse files
committed
some test fixes
1 parent 3b2c245 commit 2d13f13

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test.bats

+4-1
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,14 @@ teardown() {
5050
ls puck/flask
5151
}
5252

53-
@test "py3.6 can package flask with zip option" {
53+
@test "py3.6 can package flask & bottle with zip option" {
5454
cd tests/base
5555
npm i $(npm pack ../..)
5656
sls --zip=true package
5757
unzip .serverless/sls-py-req-test.zip -d puck
5858
ls puck/.requirements.zip puck/unzip_requirements.py
5959
! ls puck/flask
60+
! ls puck/bottle
6061
}
6162

6263
@test "py3.6 can package flask with slim options" {
@@ -581,6 +582,8 @@ teardown() {
581582
}
582583

583584
@test "py3.6 can package flask in a project with a space in it with docker" {
585+
docker &> /dev/null || skip "docker not present"
586+
! uname -sm|grep Linux || groups|grep docker || id -u|egrep '^0$' || skip "can't dockerize on linux if not root & not in docker group"
584587
cp -a tests/base "tests/base with a space"
585588
cd "tests/base with a space"
586589
npm i $(npm pack ../..)

0 commit comments

Comments
 (0)