Example #1
0
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()
Example #2
0
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()
Example #3
0
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')
Example #4
0
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()
Example #5
0
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': []}