Esempio n. 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()
Esempio n. 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()
Esempio n. 3
0
 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()
Esempio n. 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()
Esempio n. 6
0
 def setUp(self):
     db.create_all()
Esempio n. 7
0
 def setUp(self):
     db.create_all()
Esempio n. 8
0
 def run(self):
     with app.app_context():
         db.create_all()