--
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 beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAGQ70eukraPT2iYJx435Vj-Uk3b_59MXarjUGaAB4Jmsnxgc_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhN%2BVm8QPw4MouxFkYpeQdYRHsnndsQw9pa0QF%2BreZ1f4g%40mail.gmail.com.
Thanks, that worked. I've run into a simple problem which may or may not be a bug.If there's non python files in the same directory, they're passed to the test, but not filtered by identify(). This means if I'm writing a pdf test, for example, and have a txt file in the same directory, the tests always fail.
It may be more correct to run identify() and not run extract/file_name/file_date/file_account if that fails. That may be out of scope though.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAGQ70ev-5jgLc_TXnspYa8NtASmeN9DaszEkaza0X_g3Bq5Fpw%40mail.gmail.com.
On Thu, Nov 29, 2018 at 4:05 AM Oon-Ee Ng <ngoone...@gmail.com> wrote:Thanks, that worked. I've run into a simple problem which may or may not be a bug.If there's non python files in the same directory, they're passed to the test, but not filtered by identify(). This means if I'm writing a pdf test, for example, and have a txt file in the same directory, the tests always fail.Quick question (not disingenuous): do you really need that txt file? Can you do without?
It may be more correct to run identify() and not run extract/file_name/file_date/file_account if that fails. That may be out of scope though.It's been a while, but I cleaned up all my importer code at the same time I ported to pytest, and IIRC I changed it so that it was unconditional. It seemed more predictable that way.I can have a look.Best is if you can send an example directory that fails for you.