aws-samples / aws-samples/aws-serverless-app-with-aurora-and-python-sql-alchemy-example
Question about Unit Testing
未关闭
- 主要语言
- Python
- 星标
- 67
- 派生
- 16
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi there,
Thanks so much for providing this demo app. I have a question about writing unit tests when using layers. When running pytest locally, `import` errors occur when my lambda function references a library or dependency contained in a layer. What is the workaround for this limitation?
Best,
Brianna
贡献指南
调研方向
首先,在引用 layer 中所包含依赖项的 Lambda 函数中重现 pytest 导入失败。记录一种受支持的解决方法,并说明如何在本地验证该依赖项能够在 pytest 下成功导入。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- aws, python
- 领域
- backend, cloud, testing-qa
- Issue 类型
- 文档
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100