Skip to content

Commit

Permalink
importers.csvbase: Simplify tests a tiny bit
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolodi committed Jan 27, 2025
1 parent c7df26a commit 6c57484
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions beangulp/importers/csvbase_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,28 +438,6 @@ class CSVImporter(Base):

@docfile
def test_extract_balance(self, filename):
"""\
2021-05-18, Test A, 2.00, 3.00
2021-05-17, Test B, 1.00, 1.00
"""
class CSVImporter(Base):
date = Date(0)
narration = Column(1)
amount = Amount(2)
balance = Amount(3)
names = False
importer = CSVImporter('Assets:CSV', 'EUR')
entries = importer.extract(filename, [])
self.assertEqualEntries(entries, """
2021-05-17 * "Test B"
Assets:CSV 1.00 EUR
2021-05-18 * "Test A"
Assets:CSV 2.00 EUR
2021-05-19 balance Assets:CSV 3.00 EUR
""")

@docfile
def test_extract_balance_with_multiple_transactions_per_day_and_ascending_dates(self, filename):
"""\
2021-05-17, Test A, 1.00, 1.00
2021-05-18, Test B, 2.00, 3.00
Expand All @@ -484,7 +462,7 @@ class CSVImporter(Base):
""")

@docfile
def test_extract_balance_with_order_override(self, filename):
def test_extract_balance_order(self, filename):
"""\
2021-05-18, Test B, 2.00, 4.00
2021-05-18, Test C, 1.00, 2.00
Expand Down

0 comments on commit 6c57484

Please sign in to comment.