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

pytest snapshot_folder_name and allow_multiple_equivalent_writes_to_one_location #321

Open
SDelgado-21 opened this issue Apr 12, 2024 · 1 comment
Labels
enhancement New feature or request py

Comments

@nedtwigg
Copy link
Member

We now have a SelfieSettings, but there are two parts missing:

@property
def allow_multiple_equivalent_writes_to_one_location(self) -> bool:
"""Allow multiple equivalent writes to one location."""
return True
@property
def snapshot_folder_name(self) -> Optional[str]:
"""Defaults to None, which means that snapshots are stored right next to the test that created them."""
return None

Users should be able to set them like so:

"""API for configuring the selfie plugin, you can set its values like this https://docs.pytest.org/en/7.1.x/reference/customize.html#configuration-file-formats"""

Right now our docs say something like this:

If you want the disk snapshots to live in a different folder, set snapshotFolderName using

whatever we have to say there should be accurate

@nedtwigg nedtwigg removed their assignment Apr 23, 2024
@nedtwigg nedtwigg changed the title Implement SelfieSettings for python pytest snapshot_folder_name and allow_multiple_equivalent_writes_to_one_location Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request py
Projects
None yet
Development

No branches or pull requests

2 participants