Ejemplo n.º 1
0
 def teardown_class(cls):
     db.drop_all()
Ejemplo n.º 2
0
#!/bin/python

# This is a VERY quick and dirty way to initialize what needs to be setup
# to get remote_install to run.
# IT WILL DELETE YOUR CURRENT DATABASE!!
# be careful when you use it.

from remote_install.models.user import User
from remote_install import db

if __name__ == '__main__':
    db.drop_all()
    db.create_all()

    user = User('admin', 'password', 'admin@localhost', is_admin=True)
    db.session.add(user)
    db.session.commit()


Ejemplo n.º 3
0
 def setup_method(self, method):
     db.drop_all()
     db.create_all()
Ejemplo n.º 4
0
 def teardown_class(cls):
     db.drop_all()
Ejemplo n.º 5
0
 def setup_method(self, method):
     db.drop_all()
     db.create_all()