Skip to content

Commit

Permalink
test(minor): Regenerate unit test output
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 committed Sep 15, 2023
1 parent 75a2d33 commit 3a9ceb8
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
2019-01-09 * "Check 23400"
Assets:Banks:Checking -1000 USD

2019-08-30 balance Assets:Banks:Checking 150.65 USD
2019-09-02 balance Assets:Banks:Checking 150.65 USD
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
2023-02-28 * "Monthly Interest Paid" ""
Assets:Banks:CapitalOne 0.01 USD

2023-03-07 balance Assets:Banks:CapitalOne 4321.98 USD
2023-03-09 balance Assets:Banks:CapitalOne 4321.98 USD
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
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
2023-03-07 * "Investment Expense" "[V7743] Vanguard Target Retirement 2050 Trust"
Assets:Vanguard:401k:Pretax:V7743 -0.000349 V7743

2023-05-25 balance Assets:Vanguard:401k:V7743 113.718 V7743

2023-05-26 price V7743 117.71 USD

2023-05-27 balance Assets:Vanguard:401k:V7743 113.718 V7743
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
2019-01-09 * "Check 23400"
Assets:Banks:Checking -1000 USD

2019-09-01 balance Assets:Banks:Checking 150.65 USD
2019-09-02 balance Assets:Banks:Checking 150.65 USD

0 comments on commit 3a9ceb8

Please sign in to comment.