def setUp(self):
        self.app, self.db = create_app("test")

        self.cli = make_data_cli(db=self.db)
        make_db_cli(cli=self.cli, db=self.db)
        make_data_survey_cli(cli=self.cli, db=self.db)

        self.runner = CliRunner()
 def setUp(self):
     self.app, self.db = create_app("test")
     self.db.create_all(app=self.app)
     self.client = self.app.test_client()
     self.old = tuple([] + list(basedir_collatinus))
     self.current = change_basedir(
         os.path.split(os.path.abspath(os.path.dirname(__file__))) +
         ("test_data", ))
     TestCollatinusScripts.calls = []
    def setUp(self):
        self.app, self.db = create_app("test")
        self.clear_db(self.app, self.db)

        # We create all cli to check that it does not overwrite anything
        with self.app.app_context():
            self.cli = make_data_cli(db=self.db)
            make_db_cli(cli=self.cli, db=self.db)
            make_data_survey_cli(cli=self.cli, db=self.db)

        self.runner = CliRunner()
    def setUp(self):
        self.app, self.db = create_app("test")

        self.cli = make_data_cli(db=self.db)
        make_db_cli(cli=self.cli, db=self.db)
        make_data_survey_cli(cli=self.cli, db=self.db)

        self.runner = CliRunner()

        with self.app.app_context():
            self.db.create_all()
            self.db.session.commit()

            insert_misses(self.db)
示例#5
0
    def setUp(self):
        self.app, self.db = create_app("test")
        self.app.config['SERVER_NAME'] = 'localhost'
        self.db.create_all(app=self.app)
        self.client = self.app.test_client()

        with self.app.app_context():
            corpus = CollatinusCorpus("lat",
                                      "fre",
                                      source_file=get_path("collatinus.data"))
            corpus.ingest()
            corpus = CollatinusCorpus(
                "lat", "unk", source_file=get_path("collatinus-ext.data"))
            corpus.ingest()
示例#6
0
 def setUp(self):
     self.app, self.db = create_app("test")
     self.db.create_all(app=self.app)
     self.client = self.app.test_client()
from atservices import create_app


app, db = create_app()


if __name__ == "__main__":
    app.DEBUG = True
    app.run()