コード例 #1
0
ファイル: test_bigh.py プロジェクト: bfetler/bigheart
 def setUp(self):
     bigh.app.config["TESTING"] = True
     bigh.app.config["DBNAME"] = "bigh_test"  # must be created first
     self.app = bigh.app.test_client()
     with bigh.app.app_context():
         bigh.init_db()
     self.db_fd, self.data_path = tempfile.mkstemp()
コード例 #2
0
ファイル: test_bigh.py プロジェクト: bfetler/bigheart
 def setUp(self):
     bigh.app.config['TESTING'] = True
     bigh.app.config['DBNAME'] = 'bigh_test'  # must be created first
     self.app = bigh.app.test_client()
     with bigh.app.app_context():
         bigh.init_db()
     self.db_fd, self.data_path = tempfile.mkstemp()
コード例 #3
0
ファイル: manage.py プロジェクト: bfetler/bigheart
def main():
    if len(sys.argv) > 1:
        if sys.argv[1] == 'initdb':
            init_db()   # initialize database
コード例 #4
0
ファイル: test_bigh.py プロジェクト: bfetler/bigheart
 def tearDown(self):
     os.unlink(self.data_path)
     with bigh.app.app_context():
         bigh.init_db()
コード例 #5
0
ファイル: test_bigh.py プロジェクト: bfetler/bigheart
 def tearDown(self):
     os.unlink(self.data_path)
     with bigh.app.app_context():
         bigh.init_db()
コード例 #6
0
ファイル: manage.py プロジェクト: bfetler/bigheart
def main():
    if len(sys.argv) > 1:
        if sys.argv[1] == 'initdb':
            init_db()  # initialize database