def setup_module(module): config['system_plugins'].append('test.test_web_extract') initialize_app() reset_textstore() module.store = _teststore() user = User('cow') user.set_password('pig') module.store.put(user)
def setup_module(module): initialize_app() reset_textstore() module.store = _teststore() for i in xrange(5): bag = Bag('bag%s' % i) module.store.put(bag)
def setup_module(module): initialize_app() reset_textstore() module.store = _teststore() user = User(u'cd\u2714nt') user.set_password('cowpig') module.store.put(user) muchdata(module.store)
def setup_module(module): initialize_app() reset_textstore() module.store = _teststore() muchdata(module.store) user = User('cdent') user.set_password('cowpig') module.store.put(user)
def setup_module(module): initialize_app() reset_textstore() module.store = _teststore() for i in xrange(5): recipe = Recipe('recipe%s' % i) recipe.set_recipe([('monkey', '')]) module.store.put(recipe)
def setup_module(module): config['auth_systems'].append('not.really.there') initialize_app() reset_textstore() module.store = _teststore() muchdata(module.store) user = User('cdent') user.set_password('cowpig') store.put(user)
def setup_module(module): config["auth_systems"].append("not.really.there") initialize_app() reset_textstore() module.store = _teststore() muchdata(module.store) user = User("cdent") user.set_password("cowpig") store.put(user)
def setup_module(module): initialize_app() reset_textstore() module.store = _teststore() bag = Bag('bag0') module.store.put(bag) user = User('cdent') user.set_password('cowpig') module.store.put(user)
def setup_module(module): initialize_app() reset_textstore() module.store = _teststore() muchdata(module.store) user = User('cdent') user.set_password('cowpig') module.store.put(user) try: os.mkdir('.test_cache') except OSError: pass # we don't care if it already exists
def setup_module(module): from tiddlyweb.filters.select import ATTRIBUTE_SELECTOR from tiddlyweb.filters import FilterError def hell_raiser(entity, attribute, value): raise FilterError('no good man') ATTRIBUTE_SELECTOR['error'] = hell_raiser initialize_app() reset_textstore() module.store = _teststore() muchdata(module.store) user = User('cdent') user.set_password('cowpig') module.store.put(user)
def http_test(test_data, base): global tests, store, http, base_url base_url = base tests = test_data initialize_app() reset_textstore() store = _teststore() muchdata(store) # we're going to need a user for testing auth stuff # so make that now user = User('cdent') user.set_password('cowpig') store.put(user) http = httplib2.Http()
def setup_module(module): initialize_app()
def setup_module(module): initialize_app() reset_textstore() module.store = _teststore() muchdata(module.store)
def setup_function(func): initialize_app() reset_store() create_test_data()