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