Ejemplo n.º 1
0
 def setup(self):
     # self.app = monkeyapp.create_app('sqlite+pysqlite:////tmp/test23.db')
     self.app = monkeyapp.create_app("postgresql+psycopg2://monkey:monkey@localhost/test")
     self.app.debug = True
     self.client = self.app.test_client()
     self.ctx = self.app.test_request_context()
     self.ctx.push()
     create_all()
Ejemplo n.º 2
0
import os
import monkeyapp

app = monkeyapp.create_app(os.environ.get("HEROKU_POSTGRESQL_YELLOW_URL"))
app.config["TESTING"] = True
app.debug = True
Ejemplo n.º 3
0
from monkeyapp import create_app
app = create_app('postgresql://*****:*****@localhost/monkey')
app.run(debug=True)