Skip to content

upgrade to moto 5.2#683

Merged
chris48s merged 1 commit into
mainfrom
moto20260716
Jul 20, 2026
Merged

upgrade to moto 5.2#683
chris48s merged 1 commit into
mainfrom
moto20260716

Conversation

@chris48s

Copy link
Copy Markdown
Member

Comment thread tests/conftest.py
Comment on lines -169 to +173
if resource["ResourceType"] == "AWS::Lambda::Function" and resource[
"PhysicalResourceId"
].startswith("ingest-"):
if resource.get(
"ResourceType"
) == "AWS::Lambda::Function" and resource.get(
"PhysicalResourceId", ""
).startswith("ingest-"):

@chris48s chris48s Jul 16, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't 100% explain this, but in the newer version of moto, not all dicts returned by describe_stack_resources() has all of these keys. I've just used .get() on both ResourceType and PhysicalResourceId so the incomplete entries are skipped.

@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.06%. Comparing base (1b2dbaf) to head (b0499a2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #683   +/-   ##
=======================================
  Coverage   93.06%   93.06%           
=======================================
  Files           3        3           
  Lines         101      101           
=======================================
  Hits           94       94           
  Misses          7        7           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chris48s
chris48s merged commit 43ee1ef into main Jul 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants