Skip to content

Commit 837f063

Browse files
committed
test path with space
1 parent e14aac9 commit 837f063

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test.bats

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ teardown() {
2424
if [ -d "${USR_CACHE_DIR}" ] ; then
2525
rm -Rf "${USR_CACHE_DIR}"
2626
fi
27+
cd ../..
28+
if [ -d "tests/base with a space" ] ; then
29+
rm -Rf "tests/base with a space"
30+
fi
2731
}
2832

2933
@test "py3.6 supports custom file name with fileName option" {
@@ -566,3 +570,12 @@ teardown() {
566570
unzip .serverless/hello1.zip -d puck
567571
./puck/module1/foobar
568572
}
573+
574+
@test "py3.6 can package flask in a project with a space in it" {
575+
cp -a tests/base "tests/base with a space"
576+
cd "tests/base with a space"
577+
npm i $(npm pack ../..)
578+
sls package
579+
unzip .serverless/sls-py-req-test.zip -d puck
580+
ls puck/flask
581+
}

0 commit comments

Comments
 (0)