Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit c583802

Browse files
authored
Merge pull request serverless#466 from miketheman/miketheman/322
test: ensure dev-packages are not included
2 parents 9b2998d + 27ced2c commit c583802

File tree

3 files changed

+115
-22
lines changed

3 files changed

+115
-22
lines changed

test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,7 @@ test('pipenv py3.6 can package flask with default options', t => {
652652
const zipfiles = listZipFiles('.serverless/sls-py-req-test.zip');
653653
t.true(zipfiles.includes(`flask${sep}__init__.py`), 'flask is packaged');
654654
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');
655656
t.end();
656657
});
657658

tests/pipenv/Pipfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ verify_ssl = true
66
Flask = "*"
77
bottle = "*"
88
boto3 = "*"
9+
10+
[dev-packages]
11+
pytest = "*"

tests/pipenv/Pipfile.lock

Lines changed: 111 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)