Exemple #1
0
        config.set(
            'database', 'uri', 'postgresql://*****:*****@localhost:5432/'
        )

        os.environ['DB_NAME'] = 'test_' + str(int(time.time()))

        from tests import suite
        test_result = unittest.TextTestRunner(verbosity=3).run(suite())

        if test_result.wasSuccessful():
            sys.exit(0)
        sys.exit(-1)


config = ConfigParser.ConfigParser()
config.readfp(open('tryton.cfg'))
info = dict(config.items('tryton'))
for key in ('depends', 'extras_depend', 'xml'):
    if key in info:
        info[key] = info[key].strip().splitlines()
major_version, minor_version, _ = info.get('version', '0.0.1').split('.', 2)
major_version = int(major_version)
minor_version = int(minor_version)

requires = []

MODULE2PREFIX = {}

MODULE = "shipping"
PREFIX = "openlabs"
for dep in info.get('depends', []):
Exemple #2
0
        from trytond.config import config
        config.set('database', 'uri',
                   'postgresql://*****:*****@localhost:5432/')

        os.environ['DB_NAME'] = 'test_' + str(int(time.time()))

        from tests import suite
        test_result = unittest.TextTestRunner(verbosity=3).run(suite())

        if test_result.wasSuccessful():
            sys.exit(0)
        sys.exit(-1)


config = ConfigParser.ConfigParser()
config.readfp(open('tryton.cfg'))
info = dict(config.items('tryton'))
for key in ('depends', 'extras_depend', 'xml'):
    if key in info:
        info[key] = info[key].strip().splitlines()
major_version, minor_version, _ = info.get('version', '0.0.1').split('.', 2)
major_version = int(major_version)
minor_version = int(minor_version)

requires = []

MODULE2PREFIX = {}

MODULE = "customs_value"
PREFIX = "openlabs"
for dep in info.get('depends', []):
        config.set("database", "uri", "postgresql://*****:*****@localhost:5432/")

        os.environ["DB_NAME"] = "test_" + str(int(time.time()))

        from tests import suite

        test_result = unittest.TextTestRunner(verbosity=3).run(suite())

        if test_result.wasSuccessful():
            sys.exit(0)
        sys.exit(-1)


config = ConfigParser.ConfigParser()
config.readfp(open("tryton.cfg"))
info = dict(config.items("tryton"))
for key in ("depends", "extras_depend", "xml"):
    if key in info:
        info[key] = info[key].strip().splitlines()
major_version, minor_version, _ = info.get("version", "0.0.1").split(".", 2)
major_version = int(major_version)
minor_version = int(minor_version)

requires = []

MODULE2PREFIX = {"product_notebook": "fio"}

MODULE = "customs_value"
PREFIX = "fio"
for dep in info.get("depends", []):