Пример #1
0
def run(d):
    from mint import mint

    filters = []
    for key, value in d.items():
        if key.startswith("mint_") and callable(value):
            filters.append(value)
    logger.debug("Got %d filters" % len(filters))
    mint.login(d["username"], d["password"])
    for f in filters:
        f(mint)
    Transaction.commit_dirty()
    mint.logout()
Пример #2
0
def teardown():
    mint.logout()