-
Notifications
You must be signed in to change notification settings - Fork 37
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
fix: Fix parsing identifiers from snapshot names #186
Conversation
Not sure if I should have checked the "I will merge this pull request" bit. |
test_content = """ | ||
import pytest | ||
|
||
def test_case_1(snapshot): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def test_case_1(snapshot): | |
def test_case(snapshot): |
probably?
Very nice catch and thank you for putting this PR together! I'm going to change the base to a temporary branch so we can run our CI suite (we have it disabled for forks at the moment), although I ran our linter and tests locally so I expect everything to work. And good note on the PR template. You're our first external contributor 😄 |
Oh, cool – thanks! This is a great project. My team literally cheered when I told them that there was a better pytest snapshot testing tool out there. This is a super cool project and it solves so many of the pain points here. Now we won't have to feel slightly bad every time we have to deal with Python snapshots instead of our Jest ones... |
Description
This fixes a regression introduced in #177 around generating parsed names from snapshot names with index suffixes.
Related Issues
Checklist
Additional Comments
No additional comments.