def setUp(self):
        self.crawler = TimesLiveCrawler()

        self.db = db
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)
Esempio n. 2
0
    def setUp(self):
        self.crawler = NewstoolsCrawler()

        self.db = db
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)
    def setUp(self):
        self.crawler = NewstoolsCrawler()

        self.db = db
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)
Esempio n. 4
0
    def setUp(self):
        self.crawler = DailysunCrawler()

        self.db = db
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)
Esempio n. 5
0
    def setUp(self):
        self.crawler = BaseCrawler()

        self.db = db
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)
Esempio n. 6
0
    def setUp(self):
        self.db = db
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)

        self.fx = dbfixture.data(PersonData, DocumentData, EntityData)
        self.fx.setup()
    def setUp(self):
        self.db = db
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)

        AlchemyExtractor.API_KEY = 'fake'
        self.dp = DocumentProcessor()
Esempio n. 8
0
    def setUp(self):
        self.db = db
        self.db.session.remove()
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)

        self.client.response_wrapper = FormWrapper
Esempio n. 9
0
    def setUp(self):
        self.db = db
        self.db.session.remove()
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)

        self.client.response_wrapper = FormWrapper
Esempio n. 10
0
    def setUp(self):
        self.db = db
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)

        self.fx = dbfixture.data(AuthorData)
        self.fx.setup()
Esempio n. 11
0
    def setUp(self):
        self.db = db
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)

        AlchemyExtractor.API_KEY = 'fake'
        self.dp = DocumentProcessor()
Esempio n. 12
0
    def setUp(self):
        self.db = db
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)

        self.fx = dbfixture.data(PersonData, DocumentData, EntityData)
        self.fx.setup()
Esempio n. 13
0
    def setUp(self):
        self.db = db
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)

        self.fx = dbfixture.data(AuthorData)
        self.fx.setup()
Esempio n. 14
0
    def setUp(self):
        self.crawler = IOLCrawler()
        self.crawler.fetch_json_info = lambda x: self.doc_info
        self.maxDiff = None

        self.db = db
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)
Esempio n. 15
0
    def setUp(self):
        self.crawler = IOLCrawler()
        self.crawler.fetch_json_info = lambda x: self.doc_info
        self.maxDiff = None

        self.db = db
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)
Esempio n. 16
0
    def setUp(self):
        self.db = db
        self.db.create_all()
        seed_db(db)
        self.client.response_wrapper = FormWrapper

        AlchemyExtractor.fetch_entities = MagicMock(return_value=[])
        AlchemyExtractor.fetch_keywords = MagicMock(return_value=[])
        CalaisExtractor.fetch_data = MagicMock(return_value={})
Esempio n. 17
0
    def setUp(self):
        self.db = db
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)

        self.fx = dbfixture.data(DocumentData)
        self.fx.setup()

        self.doc = Document.query.get(self.fx.DocumentData.simple.id)
    def setUp(self):
        self.db = db
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)

        AlchemyExtractor.API_KEY = 'fake'
        self.ex = AlchemyExtractor()
        self.doc = Document()
        self.doc.text = 'foo'
Esempio n. 19
0
    def setUp(self):
        self.db = db
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)

        AlchemyExtractor.API_KEY = 'fake'
        self.ex = AlchemyExtractor()
        self.doc = Document()
        self.doc.text = 'foo'
    def setUp(self):
        self.ex = SourcesExtractor()

        self.db = db
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)

        self.fx = dbfixture.data(DocumentData, EntityData)
        self.fx.setup()
    def setUp(self):
        self.db = db
        self.db.session.remove()
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)

        self.fx = dbfixture.data(DocumentData)
        self.fx.setup()

        self.client.response_wrapper = FormWrapper
Esempio n. 22
0
    def setUp(self):
        self.db = db
        self.db.session.remove()
        self.db.drop_all()
        self.db.create_all()
        seed_db(db)

        self.fx = dbfixture.data(EntityData)
        self.fx.setup()

        self.client.response_wrapper = FormWrapper

        AlchemyExtractor.fetch_entities = MagicMock(return_value=[])
        AlchemyExtractor.fetch_keywords = MagicMock(return_value=[])
        CalaisExtractor.fetch_data = MagicMock(return_value={})
Esempio n. 23
0
from dexter.models import db
from dexter.models.seeds import seed_db

db.drop_all()
db.create_all()
seed_db(db)
Esempio n. 24
0
 def setUp(self):
     self.db = db
     self.db.drop_all()
     self.db.create_all()
     seed_db(db)
Esempio n. 25
0
from dexter.models import db
from dexter.models.seeds import seed_db

db.drop_all()
db.create_all()
seed_db(db)
Esempio n. 26
0
 def setUp(self):
     self.db = db
     self.db.drop_all()
     self.db.create_all()
     seed_db(db)