tests/config.py
author Radek Brich <radek.brich@devl.cz>
Sat, 29 Sep 2012 13:53:54 +0200
changeset 49 08e4dfe1b0cb
parent 37 5b0eb4b11940
permissions -rw-r--r--
Add test for MyManager (enable only when MySQLdb is available). Configure tests using pgtoolkit.conf (same as used by other executables).

class Config(dict):
    def __init__(self, fname):
        with open(fname) as f:
            data = f.read()
        exec(data, dict(), self)