Skip to content

Commit 6a98da2

Browse files
committed
port over another test (mostly cause i need to trigger appveyor :D )
1 parent d79d72a commit 6a98da2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test.js

+12
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,15 @@ test('py3.6 can package flask with zip option', t => {
9696
t.false(files.includes('flask'), "flask isn't packaged on its own");
9797
t.end();
9898
});
99+
100+
test('py3.6 can package flask with slim option', t => {
101+
process.chdir('tests/base');
102+
const path = npm(['pack', '../..']);
103+
npm(['i', path]);
104+
sls(['--slim=true', 'package']);
105+
unzip(['.serverless/sls-py-req-test.zip', '-d', 'puck']);
106+
const files = readdirSync('puck');
107+
t.true(files.includes('flask'), 'flask is packaged');
108+
t.deepEqual(glob.sync('puck/**/*.pyc'), [], 'no pyc files packaged');
109+
t.end();
110+
});

0 commit comments

Comments
 (0)