Skip to content

Commit

Permalink
Revert "test(csvbase): default identify"
Browse files Browse the repository at this point in the history
This reverts commit 3c97c22.
  • Loading branch information
wzyboy committed Jan 23, 2025
1 parent 96c5728 commit 8aa7bb4
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions beangulp/importers/csvbase_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from beancount.core import data
from beancount.parser import cmptest
from beancount.utils.test_utils import docfile, docfile_extra
from beancount.utils.test_utils import docfile
from beangulp.importers.csvbase import Column, Columns, Date, Amount, CSVMeta, CSVReader, Order, Importer


Expand Down Expand Up @@ -563,33 +563,3 @@ def finalize(self, txn, row):
importer = CSVImporter('Assets:CSV', 'EUR')
entries = importer.extract(filename, [])
self.assertEqual(len(entries), 1)

@docfile_extra(suffix='.csv')
def test_default_identify_positive(self, filename):
"""\
# FooBank Account 12345
2021-05-17, Test, -1.00, Testing
"""
class CSVImporter(Importer):
date = Date(0)
narration = Column(1)
amount = Amount(2)
names = False

importer = CSVImporter('Assets:CSV', 'EUR', regexps=['FooBank', '12345'])
self.assertTrue(importer.identify(filename))

@docfile_extra(suffix='.csv')
def test_default_identify_negative(self, filename):
"""\
# BarBank Account 12345
2021-05-17, Test, -1.00, Testing
"""
class CSVImporter(Importer):
date = Date(0)
narration = Column(1)
amount = Amount(2)
names = False

importer = CSVImporter('Assets:CSV', 'EUR', regexps=['FooBank', '12345'])
self.assertFalse(importer.identify(filename))

0 comments on commit 8aa7bb4

Please sign in to comment.