def setUp(self): db.create_all() self.commit = Commit(commit_hash='master', repository="adsws") self.build = Build(commit=self.commit) # Add some unrelated commit/builds to ensure that these are *not* # rendered c = Commit(commit_hash="_hash_", repository="_repo_") b = Build(commit=c) db.session.add(self.commit) db.session.add(self.build) db.session.add(c) db.session.add(b) db.session.commit()
def setUp(self): db.create_all() self.commit = Commit( commit_hash='master', repository="adsws" ) self.build = Build(commit=self.commit) # Add some unrelated commit/builds to ensure that these are *not* # rendered c = Commit(commit_hash="_hash_", repository="_repo_") b = Build(commit=c) db.session.add(self.commit) db.session.add(self.build) db.session.add(c) db.session.add(b) db.session.commit()
def run(self): with app.app_context(): db.create_all()
def setUp(self): """ setUp and tearDown are run at the start of each test; ensure that a fresh database is used for each test. """ db.create_all()
def setUp(self): db.create_all()