Skip to content

Docs: improve examples with typed examples of LambdaContext dataclasses #6215

Description

@basvandriel

What were you searching in the docs?

When looking for testing examples for testing my lambda functions, I noticed the LamdbaContext was defined in the fixture method. I think this can be improved by moving it out the method, typing the fixtures.

Is this related to an existing documentation section?

No response

How can we improve?

See #6214. This pull request moves the dataclasses out of the fixtures.

Acknowledgment

  • I understand the final update might be different from my proposed suggestion, or refused.

Activity

  1. added
    documentation
    triage
    on Mar 4, 2025
  2. added and removed
    triage
    on Mar 4, 2025
  3. moved this from Triage to Working on it in Powertools for AWS Lambda (Python)on Mar 4, 2025
  4. leandrodamascena commented on Mar 4, 2025

    @leandrodamascena
    Contributor

    Hi @basvandriel! Thanks for opening this issue and submitting the PR! I can accept the PR because it improves the experience for those who use our tests to get some insight. I see that the PR is failing on CI, can you please take a look?

  5. basvandriel commented on Mar 4, 2025

    @basvandriel
    ContributorAuthor

    Hi @leandrodamascena, I'll make sure to look into it tomorrow. Didn't see it failing when I opened the PR :-)

  6. leandrodamascena commented on Mar 4, 2025

    @leandrodamascena
    Contributor

    Hi @leandrodamascena, I'll make sure to look into it tomorrow. Didn't see it failing when I opened the PR :-)

    No rush at all! Take your time and please let me know if you need any help.

  7. github-actions commented on Mar 7, 2025

    @github-actions
    Contributor

    ⚠️COMMENT VISIBILITY WARNING⚠️

    This issue is now closed. Please be mindful that future comments are hard for our team to see.

    If you need more assistance, please either tag a team member or open a new issue that references this one.

    If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationtests

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions