Files @ fcd14f3c4466
Branch filter:

Location: NPO-Accounting/import2ledger/tests/__init__.py

Brett Smith
github: Update to match fiscal host reporting.

In general the fiscal host reporting isn't as nice as the project reporting,
so I hope someday we can revert this change, but until then that's what
we're using.
import decimal
import pathlib
import re

from import2ledger import __main__ as i2lmain

decimal.setcontext(i2lmain.decimal_context())

DATA_DIR = pathlib.Path(__file__).with_name('data')

def normalize_whitespace(s):
    return re.sub(r'(\t| {3,})', '  ', s)