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
```
--
You received this message because you are subscribed to the Google Groups
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/20180317214321.33845.4754%40celery-worker-108.ash1.bb-inf.net.
For more options, visit https://groups.google.com/d/optout.