def setup_module(module): make_test_env(module) # we have to have a function that returns the callable, # Selector just _is_ the callable httplib2_intercept.install() wsgi_intercept.add_wsgi_intercept('0.0.0.0', 8080, app_fn) module.http = httplib2.Http()
def setup_module(module): make_test_env(module) httplib2_intercept.install() wsgi_intercept.add_wsgi_intercept('0.0.0.0', 8080, app_fn) wsgi_intercept.add_wsgi_intercept('foo.0.0.0.0', 8080, app_fn) module.http = httplib2.Http() user = User('foo') user.set_password('foobar') store.put(user) make_fake_space(store, 'foo')
def setup_module(module): make_test_env(module) httplib2_intercept.install() wsgi_intercept.add_wsgi_intercept('nitor.org', 8080, app_fn) module.http = httplib2.Http()
def setup_module(module): make_test_env(module) module.environ = module.store.environ module.environ['tiddlyweb.store'] = module.store module.environ['tiddlyweb.usersign'] = {'name': 'GUEST', 'roles': []}