Skip to content

Commit

Permalink
test(minor): Regenerate unit test output (#82)
Browse files Browse the repository at this point in the history
Some dates in the extracted files for some unit tests changed with 75a2d33. Check in those updated files.
  • Loading branch information
farktronix authored Oct 29, 2023
1 parent 96ee01a commit 2bf5a99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def convert_columns(self, rdr):

# fixup currencies
def remove_non_numeric(x):
return re.sub("[^0-9\.]", "", x) # noqa: W605
return re.sub(r'[^0-9\.]', "", x) # noqa: W605
currencies = ['unit_price']
for i in currencies:
rdr = rdr.convert(i, remove_non_numeric)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def convert_columns(self, rdr):

# fixup currencies
def remove_non_numeric(x):
return re.sub("[^0-9\.]", "", x) # noqa: W605
return re.sub(r'[^0-9\.]', "", x) # noqa: W605
currencies = ['unit_price']
for i in currencies:
rdr = rdr.convert(i, remove_non_numeric)
Expand Down
2 changes: 1 addition & 1 deletion beancount_reds_importers/libreader/csvreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def convert_columns(self, rdr):

# fixup currencies
def remove_non_numeric(x):
return re.sub("[^0-9\.-]", "", str(x).strip()) # noqa: W605
return re.sub(r'[^0-9\.-]', "", str(x).strip()) # noqa: W605
currencies = getattr(self, 'currency_fields', []) + ['unit_price', 'fees', 'total', 'amount', 'balance']
for i in currencies:
if i in rdr.header():
Expand Down

0 comments on commit 2bf5a99

Please sign in to comment.