Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests to aws-python #864

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

justinvp
Copy link
Member

@justinvp justinvp commented Dec 17, 2024

This change updates the aws-python template to include unit tests, similar to #863 for aws-typescript.

Part of #865

@justinvp justinvp force-pushed the justin/tests-aws-python branch from ba78131 to d616543 Compare December 17, 2024 22:40

# Create an AWS resource (S3 Bucket)
bucket = s3.BucketV2('my-bucket')
import infra
Copy link
Member Author

Choose a reason for hiding this comment

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

Moves resource creation to a separate module, which is consistent with the change for aws-typescript. See #863 (comment).

# Test helper to convert a Pulumi Output to an Awaitable.
# This should only be used in tests.
T = TypeVar("T")
def awaitable(output: pulumi.Output[T]) -> Awaitable[T]:
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe to_awaitable ? await awaitable(...) reads a bit clumsy, and I find it a bit too close to uppercase Awaitable. I don't feel very strongly about this though.

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