Exemplo n.º 1
0
    def setUp(self):
        TestCase.setUp(self)
        from lib.Crawl import Crawl

        if not Crawl.exists():
            Crawl.createTable()
        self.assertTrue(Crawl.exists())
Exemplo n.º 2
0
    def setUp(self):
        TestCase.setUp(self)
        from lib.Crawl import Crawl

        self.assertTrue(Crawl.exists())
        Record.createTable()
        self.assertTrue(Record.exists())
Exemplo n.º 3
0
 def setUp(self):
     Record.createTable()
     self.assertTrue(Record.exists())
     Crawl.createTable()
     self.assertTrue(Crawl.exists())
     self.session = SqlAlchemySessionFactory().createSqlAlchemySession()