Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinZZ committed Sep 28, 2023
1 parent ddb3aa6 commit d73c00f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samtranslator/model/eventsources/push.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,11 +521,12 @@ def to_cloudformation(self, **kwargs): # type: ignore[no-untyped-def]
"""
function = kwargs.get("function")
role = kwargs.get("role")
intrinsics_resolver: IntrinsicsResolver = kwargs["intrinsics_resolver"]

if not function:
raise TypeError("Missing required keyword argument: function")

intrinsics_resolver: IntrinsicsResolver = kwargs["intrinsics_resolver"]

# SNS -> Lambda
if not self.SqsSubscription:
subscription = self._inject_subscription(
Expand Down

0 comments on commit d73c00f

Please sign in to comment.