示例#1
0
    def setUp(self):
        self.config = testing.setUp(settings=self.settings)
        archive_settings = {archive_config.CONNECTION_STRING: self.db_conn_str}
        archive_initdb(archive_settings)
        from cnxpublishing.db import initdb

        initdb(self.db_conn_str)
示例#2
0
    def setUp(self):
        EPUBMixInTestCase.setUp(self)
        config = testing.setUp(settings=self.settings)
        archive_settings = {
            archive_config.CONNECTION_STRING: self.db_conn_str,
            }
        archive_initdb(archive_settings)
        from cnxpublishing.db import initdb
        initdb(self.db_conn_str)

        # Assign API keys for testing
        self.set_up_api_keys()