コード例 #1
0
    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()
コード例 #2
0
    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()
コード例 #3
0
 def run(self):
     with app.app_context():
         db.create_all()
コード例 #4
0
 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()
コード例 #5
0
 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()
コード例 #6
0
 def setUp(self):
     db.create_all()
コード例 #7
0
 def setUp(self):
     db.create_all()
コード例 #8
0
ファイル: manage.py プロジェクト: ehenneken/mission-control
 def run(self):
     with app.app_context():
         db.create_all()