def setUp(self):
     # Putting things in tmp couples this project to Unix.
     db_uri = "sqlite:////tmp/{}".format(uuid.uuid1())
     heart_beat.app.config["SQLALCHEMY_DATABASE_URI"] = db_uri
     heart_beat.app.config["TESTING"] = True
     self.test_app = heart_beat.app.test_client()
     heart_beat.setup_db()
示例#2
0
 def setUp(self):
     # Putting things in tmp couples this project to Unix.
     db_uri = 'sqlite:////tmp/{}'.format(uuid.uuid1())
     heart_beat.app.config['SQLALCHEMY_DATABASE_URI'] = db_uri
     heart_beat.app.config['TESTING'] = True
     self.test_app = heart_beat.app.test_client()
     heart_beat.setup_db()
 def setUp(self):
     db_uri = 'sqlite:////tmp/{}'.format(uuid.uuid1())
     heart_beat.app.config['SQLALCHEMY_DATABASE_URI'] = db_uri
     heart_beat.app.config['TESTING'] = True
     self.test_app = heart_beat.app.test_client()
     heart_beat.setup_db()
 def setUp(self):
     db_uri = 'sqlite:////tmp/{}'.format(uuid.uuid1())
     heart_beat.app.config['SQLALCHEMY_DATABASE_URI'] = db_uri
     heart_beat.app.config['TESTING'] = True
     self.test_app = heart_beat.app.test_client()
     heart_beat.setup_db()