示例#1
0
    def run(self):
        if len(self.args) > 0:
            self.parser.error("Invalid argument")

        sure = raw_input("Are you sure? [y/n] ") == "y"
        if sure:
            print "Dropping database..."
            migrations.drop()
示例#2
0
    def run(self):
        if len(self.args) > 0:
            self.parser.error("Invalid argument")

        sure = raw_input("Are you sure? [y/n] ") == "y"
        if sure:
            print "Dropping database..."
            migrations.drop()
示例#3
0
 def tearDown(self):
     db.session.remove()
     migrations.drop()
     os.remove(self.dbfile)
     TestCase.tearDown(self)