Exemple #1
0
def before_request():
    config = app.config
    g.wiki = Wiki(config['WIKI_DIR'],
                  extensions       = config.get('WIKI_EXTENSIONS', {}),
                  default_renderer = config.get('WIKI_DEFAULT_RENDERER', None),
                  plugins_config   = config.get('WIKI_PLUGINS_CONFIG', {}),
                  has_vcs          = config.get('WIKI_GIT_SUPPORT', False))
Exemple #2
0
    def setUp(self):
        self.test_filename = 'test_pendium_file.md'
        app.config.from_object('pendium.default_config')
        config = app.config
        self.w = Wiki(config.get('WIKI_DIR', ''),
                      extensions       = config.get('WIKI_EXTENSIONS', {}),
                      default_renderer = config.get('WIKI_DEFAULT_RENDERER', None),
                      plugins_config   = config.get('WIKI_PLUGINS_CONFIG', {}),
                      has_vcs          = False)

        # Testing flask app
        self._app = app.test_client()

        return