moin-2.0 / MoinMoin / _tests /

# Copyright: 2000-2004 by Juergen Hermann <>
# License: GNU GPL v2 (or any later version), see LICENSE.txt for details.

MoinMoin - test wiki configuration

Do not change any values without good reason.

We mostly want to have default values here, except for stuff that doesn't
work without setting them (like data_dir).

import os
from os.path import abspath, dirname, join
from MoinMoin.config.default import DefaultConfig

class Config(DefaultConfig):
    _here = abspath(dirname(__file__))
    _root = abspath(join(_here, '..', '..'))
    data_dir = join(_here, 'wiki', 'data') # needed for plugins package TODO
    index_storage = 'FileStorage', (join(_here, 'wiki', 'index'), ), {}
    content_acl = None
    item_root = 'FrontPage'
    interwikiname = u'MoinTest'
    interwiki_map = dict(Self='http://localhost:8080/', MoinMoin='')
    interwiki_map[interwikiname] = 'http://localhost:8080/'

    passlib_crypt_context = dict(
        schemes=["sha512_crypt", ],
        # for the tests, we don't want to have varying rounds
        # for the tests, we want to have a rather low rounds count,
        # so the tests run quickly (do NOT use low counts in production!)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.