Issue #243: ingest/importers/fileonly.py test_match failing (blais/beancount)

13 views
Skip to first unread message

Michael Droogleever

unread,
Mar 17, 2018, 5:43:24 PM3/17/18
to bean...@googlegroups.com
New issue 243: ingest/importers/fileonly.py test_match failing
https://bitbucket.org/blais/beancount/issues/243/ingest-importers-fileonlypy-test_match

Michael Droogleever:

This is linked to #211.
Believed to be a system specific issue.
```
#!python

================================================================================= FAILURES ==================================================================================
__________________________________________________________________________ TestFileOnly.test_match __________________________________________________________________________

self = <beancount.ingest.importers.fileonly_test.TestFileOnly testMethod=test_match>, filename = '/tmp/tmp3aqvnoxf'

@unittest.skipIf(not file_type.magic, 'python-magic is not installed')
@test_utils.docfile
def test_match(self, filename):
"""\
DATE,TYPE,REF #,DESCRIPTION,FEES,AMOUNT,BALANCE
2014-04-14,BUY,14167001,BOUGHT +CSKO 50 @98.35,7.95,-4925.45,25674.63
2014-05-08,BUY,12040838,BOUGHT +HOOL 121 @79.11,7.95,-9580.26,16094.37
"""
importer = fileonly.Importer(
['Filename: .*te?mp.*',
'MimeType: text/plain',
'Contents:\n.*DATE,TYPE,REF #,DESCRIPTION,FEES,AMOUNT'],
'Assets:BofA:Checking',
basename='bofa')
file = cache._FileMemo(filename)
> self.assertTrue(importer.identify(file))
E AssertionError: False is not true

fileonly_test.py:35: AssertionError
--------------------------------------------------------------------------- Captured stdout call ----------------------------------------------------------------------------
text/x-Algol68
```


Reply all
Reply to author
Forward
0 new messages