New issue 211: ingest/importers/regexp.py tests failing
https://bitbucket.org/blais/beancount/issues/211/ingest-importers-regexppy-tests-failing

droogmic:

```
#!python
FAIL: test_match (regexp_test.TestRegexpMixin)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../beancount/utils/test_utils.py", line 224, in new_function
    return function(self, file.name)
  File ".../beancount/ingest/importers/regexp_test.py", line 45, in test_match
    self.assertTrue(importer.identify(file))
AssertionError: False is not true
```

Cause:
The tempfile is detected as "MimeType: text/x-Algol68", when the tests expect 
"MimeType: text/plain"

e.g.
```
#!python
>>> print(match_text)
"""
Filename: /tmp/tmptr9cn666
MimeType: text/x-Algol68
Contents:
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
2014-05-11,BUY,41579908,BOUGHT +MSFX 104 @64.39,7.95,-6704.51,9389.86
2014-05-22,DIV,54857517,ORDINARY DIVIDEND~HOOL,0,28.56,9418.42
"""
```


-- 
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/20180201102702.33111.91823%40celery-worker-109.ash1.bb-inf.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to