def setUp(self): self.app = create_app("test") self.app.config["TESTING"] = True self.app_context = self.app.app_context() self.app_context.push() self.client = self.app.test_client()
def setUp(self): self.app = create_app("test") self.app.config["TESTING"] = True self.app_context = self.app.app_context() self.app_context.push() self.client = self.app.test_client() self.schema = AggregateQueryMessageSchema()
def setUp(self): self.app = create_app("test") self.app.config["TESTING"] = True self.app_context = self.app.app_context() self.app_context.push() self.client = self.app.test_client() db.create_all() self.query1 = uuid.uuid4() self.query2 = uuid.uuid4() self.query3 = uuid.uuid4()
import os from emis_aggregate_query import create_app os.environ["EMIS_CONFIGURATION"] = \ os.environ.get("EMIS_CONFIGURATION") or "production" app = create_app(os.getenv("EMIS_CONFIGURATION"))