Skip to content

Testing against samples of provided values, lots of them #20

Closed
@cblegare

Description

@cblegare

Hi!

Thank you for pytest-cookies 👍

I sometimes happen to write tests that needs the rendered context in order to test my hooks (for instance).

  • Given the user provided value some value for given prompt
  • When the template is rendered
  • Then the rendered project should ...

Since the context is not available in the cookies fixture I though it might be a nice addition.

You might not agree or have the time to add this to pytest-cookies, so let me share a gist showing an example of how this could be achieved.

Also, this could help reduce test run time in some cases

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or enhancement for pytest-cookies

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions