コード例 #1
0
def setup_module(module):
    for dir in ('store', 'indexdir'):
        try:
            shutil.rmtree(dir)
        except:  # heavy!
            pass

    init(config)
    store = get_store(config)

    store.put(Bag('bagone'))
    store.put(Bag('bagtwo'))

    module.store = store
コード例 #2
0
ファイル: test_validators.py プロジェクト: FND/tank
def setup_module(module):
    try:
        shutil.rmtree('store')
    except:
        pass
    init(config)
    module.store = get_store(config)
    module.environ = {
        'tiddlyweb.config': config,
        'tiddlyweb.store': module.store,
        'tiddlyweb.usersign': {
            'name': 'cdent',
            'roles': ['MEMBER']
        }
    }
コード例 #3
0
def setup_module(module):
    try:
        shutil.rmtree('indexdir')
        shutil.rmtree('store')
    except:
        pass
    init(config)
    module.store = get_store(config)
    module.environ = {
        'tiddlyweb.config': config,
        'tiddlyweb.store': module.store,
        'tiddlyweb.usersign': {
            'name': 'cdent',
            'roles': ['MEMBER']
        }
    }