def setUp(self): from deployer import settings app.config.from_object(settings) init_db() setup_db() # Setting up data to be tested self.project = Project(name='First Project', git_repo='[email protected]:joepreludian/deployer-ci.git', branch='master')
from deployer.models import init_db from deployer.main import app from deployer import settings app.config.from_object(settings) init_db() print 'Running...' app.run()