redstreet / beancount_reds_importers

Simple ingesting tools for Beancount (plain text, double entry accounting software). More importantly, a framework to allow you to easily write your own importers.
GNU General Public License v3.0
115 stars 39 forks source link

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

Closed farktronix closed 1 year ago

farktronix commented 1 year ago

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.

redstreet commented 1 year ago

Excellent, thank you for this, merged.