Files
tryton/proteus/tests/common.py
T
2014-12-03 16:05:10 +01:00

19 lines
526 B
Python

# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import os
from unittest import TestCase
os.environ.setdefault('TRYTOND_DATABASE_URI', 'sqlite://')
os.environ.setdefault('DB_NAME', ':memory:')
from trytond.tests.test_tryton import db_exist, create_db
from proteus import config
class ProteusTestCase(TestCase):
def setUp(self):
if not db_exist():
create_db()
self.config = config.set_trytond()