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

Regenerate some extracted unit test data that changed with 75a2d33 #82

Merged
merged 1 commit into from
Oct 29, 2023

Conversation

farktronix
Copy link
Contributor

It looks like 75a2d33 changed the way some dates are generated. This PR runs pytest --generate to update those .extracted files with the newly generated dates.

This also fixes one small warning in csvreader.py when generating the tests:

beancount_reds_importers/libreader/csvreader.py:110
  /Users/pharkas/code/beancount_reds_importers/beancount_reds_importers/libreader/csvreader.py:110: DeprecationWarning: invalid escape sequence '\.'
    return re.sub("[^0-9\.-]", "", str(x).strip())  # noqa: W605

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

I added an r in front of the pattern string to get rid of this warning. I also made a similar change everywhere else in the project that \. was used in a pattern.

Some dates in the extracted files for some unit tests changed with 75a2d33. Check in those updated files.
@redstreet redstreet merged commit 2bf5a99 into redstreet:main Oct 29, 2023
3 checks passed
@redstreet
Copy link
Owner

Excellent, thank you for this, merged.

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